Skip to content

Commit

Permalink
Preallocate querystrings
Browse files Browse the repository at this point in the history
  • Loading branch information
hoenn committed Nov 16, 2023
1 parent 20875d3 commit c983f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es.go
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ func (c *Client) GetShardRecoveryWithQueryParams(nodes []string, params map[stri
var allRecoveries []ShardRecovery
uri := "_cat/recovery"

var queryStrings []string
queryStrings := []string{}
for param, val := range params {
queryStrings = append(queryStrings, fmt.Sprintf("%s=%s", param, val))
}
Expand Down

0 comments on commit c983f69

Please sign in to comment.