Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix slice init length #591

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions agent/runcommand/mds/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ func NewService(context context.T, connectionTimeout time.Duration) Service {
msgSvc := ssmmds.New(sess)

//adding server based expected error messages
serverBasedErrorMessages = make([]string, 2)
serverBasedErrorMessages = make([]string, 0, 2)
serverBasedErrorMessages = append(serverBasedErrorMessages, "use of closed network connection")
serverBasedErrorMessages = append(serverBasedErrorMessages, "connection reset by peer")

//adding client based expected error messages
clientBasedErrorMessages = make([]string, 1)
clientBasedErrorMessages = make([]string, 0, 1)
clientBasedErrorMessages = append(clientBasedErrorMessages, "Client.Timeout exceeded while awaiting headers")

sendMdsSdkRequest := func(req *request.Request) error {
Expand Down