From 05c44d9033764f5382db6f2dac3e1d50a639d152 Mon Sep 17 00:00:00 2001 From: xianmian168 <87932124+xianmian168@users.noreply.github.com> Date: Sun, 25 Jul 2021 22:05:14 +0800 Subject: [PATCH] repair some misspelling (#1248) * Update calloption.go * Update random.go repair misspelling --- transport/http/balancer/random/random.go | 2 +- transport/http/calloption.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/http/balancer/random/random.go b/transport/http/balancer/random/random.go index 769100dd7..e4cf74380 100644 --- a/transport/http/balancer/random/random.go +++ b/transport/http/balancer/random/random.go @@ -27,7 +27,7 @@ func (b *Balancer) Pick(ctx context.Context) (node *registry.ServiceInstance, do b.lock.RUnlock() if len(nodes) == 0 { - return nil, nil, fmt.Errorf("no instances avaiable") + return nil, nil, fmt.Errorf("no instances available") } if len(nodes) == 1 { return nodes[0], func(context.Context, balancer.DoneInfo) {}, nil diff --git a/transport/http/calloption.go b/transport/http/calloption.go index 9d8174939..0eb4a02e0 100644 --- a/transport/http/calloption.go +++ b/transport/http/calloption.go @@ -94,7 +94,7 @@ func Header(header *http.Header) CallOption { return HeaderCallOption{header: header} } -// HeaderCallOption is retrive response header for client call +// HeaderCallOption is retrieve response header for client call type HeaderCallOption struct { EmptyCallOption header *http.Header