Fix error formatting based on best practices from Code Review Comments (#2615)

This commit is contained in:
CodeLingo Bot
2019-02-08 07:01:40 +13:00
committed by Menghan Li
parent d14ffaeb5c
commit c2f12b83a7
7 changed files with 9 additions and 9 deletions

View File

@ -56,7 +56,7 @@ type testingPicker struct {
func (p *testingPicker) Pick(ctx context.Context, opts balancer.PickOptions) (balancer.SubConn, func(balancer.DoneInfo), error) {
if atomic.AddInt64(&p.maxCalled, -1) < 0 {
return nil, nil, fmt.Errorf("Pick called to many times (> goroutineCount)")
return nil, nil, fmt.Errorf("pick called to many times (> goroutineCount)")
}
if p.err != nil {
return nil, nil, p.err