Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
registry/rpc: update Balancer.Start() according to gRPC 1.0.2
Browse files Browse the repository at this point in the history
As the API of gRPC 1.0.2 has changed w.r.t. Balancer.Start(), we also
need to update simpleBalancer.Start() to make it include config param.
  • Loading branch information
Dongsu Park committed Dec 2, 2016
1 parent 1c957f5 commit 4627e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/rpc/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func newSimpleBalancer(eps []string) *simpleBalancer {
}
}

func (b *simpleBalancer) Start(target string) error { return nil }
func (b *simpleBalancer) Start(target string, config grpc.BalancerConfig) error { return nil }

func (b *simpleBalancer) Up(addr grpc.Address) func(error) {
b.readyOnce.Do(func() { close(b.readyc) })
Expand Down

0 comments on commit 4627e70

Please sign in to comment.