Skip to content

Commit

Permalink
modify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rao Li committed Aug 1, 2023
1 parent e2b89f6 commit da66ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/modules/k6/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ func (c *Client) parseConnectParams(raw map[string]interface{}) (connectParams,
if !ok {
return params, errors.New("metadata must be an object with key-value pairs")
}
// Same way metadata is handled in invoke parameter parsing
for hk, kv := range rawHeaders {
// TODO(rogchap): Should we manage a string slice?
strval, ok := kv.(string)
if !ok {
return params, fmt.Errorf("metadata %q value must be a string", hk)
Expand Down

0 comments on commit da66ac8

Please sign in to comment.