Corrects wording of godoc comments.

This commit is contained in:
Yuki Yugui Sonoda
2014-07-15 22:03:08 +09:00
committed by Yuki Sonoda (Yugui)
parent 1bd7276aca
commit 2861955025
3 changed files with 4 additions and 4 deletions

View File

@@ -54,14 +54,14 @@ type EndpointsUpdate struct {
Op Operation
}
// ServiceConfigHandler is an abstract interface of objects which receive update notifications of the set of services.
// ServiceConfigHandler is an abstract interface of objects which receive update notifications for the set of services.
type ServiceConfigHandler interface {
// OnUpdate gets called when a configuration has been changed by one of the sources.
// This is the union of all the configuration sources.
OnUpdate(services []api.Service)
}
// EndpointsConfigHandler is an abstract interface of objects which receive update notifications of the set of endpoints.
// EndpointsConfigHandler is an abstract interface of objects which receive update notifications for the set of endpoints.
type EndpointsConfigHandler interface {
// OnUpdate gets called when endpoints configuration is changed for a given
// service on any of the configuration sources. An example is when a new

View File

@@ -41,7 +41,7 @@ func NewLoadBalancerRR() *LoadBalancerRR {
return &LoadBalancerRR{endpointsMap: make(map[string][]string), rrIndex: make(map[string]int)}
}
// LoadBalance select an endpoint of the service by round-robin algorithm.
// LoadBalance selects an endpoint of the service by round-robin algorithm.
func (impl LoadBalancerRR) LoadBalance(service string, srcAddr net.Addr) (string, error) {
impl.lock.RLock()
endpoints, exists := impl.endpointsMap[service]