chore: change nil slice to maked slice (#967)

Co-authored-by: Sycamor <zhangqiang@acnet.co>
pull/970/head
Sycamor 4 years ago committed by GitHub
parent e7ddc1ba1e
commit 7f835db398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      transport/grpc/resolver/discovery/resolver.go

@ -80,7 +80,7 @@ func parseEndpoint(endpoints []string) (string, error) {
}
func parseAttributes(md map[string]string) *attributes.Attributes {
var pairs []interface{}
pairs := make([]interface{}, 0, len(md))
for k, v := range md {
pairs = append(pairs, k, v)
}

Loading…
Cancel
Save