Skip to content

Commit

Permalink
Refactor ACS attach instance ENI message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
danehlim committed Jun 29, 2023
1 parent 18850dd commit d8d984b
Show file tree
Hide file tree
Showing 7 changed files with 665 additions and 479 deletions.
14 changes: 1 addition & 13 deletions agent/acs/handler/acs_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,19 +263,6 @@ func (acsSession *session) startACSSession(client wsclient.ClientServer) error {
dataClient: acsSession.dataClient,
}

// Add handler to ack instance ENI attach message
instanceENIAttachHandler := newAttachInstanceENIHandler(
acsSession.ctx,
cfg.Cluster,
acsSession.containerInstanceARN,
client,
eniHandler,
)
instanceENIAttachHandler.start()
defer instanceENIAttachHandler.stop()

client.AddRequestHandler(instanceENIAttachHandler.handlerFunc())

manifestMessageIDAccessor := &manifestMessageIDAccessor{}

// Add TaskManifestHandler
Expand Down Expand Up @@ -314,6 +301,7 @@ func (acsSession *session) startACSSession(client wsclient.ClientServer) error {
}
responders := []wsclient.RequestResponder{
acssession.NewAttachTaskENIResponder(eniHandler, responseSender),
acssession.NewAttachInstanceENIResponder(eniHandler, responseSender),
acssession.NewHeartbeatResponder(acsSession.doctor, responseSender),
}
for _, r := range responders {
Expand Down
163 changes: 0 additions & 163 deletions agent/acs/handler/attach_instance_eni_handler.go

This file was deleted.

Loading

0 comments on commit d8d984b

Please sign in to comment.