1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

Small function documentation update

This commit is contained in:
Milos Gajdos 2019-07-24 17:22:27 +01:00
parent 1e94d9fe5a
commit 13a8cfe7f3
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -113,7 +113,7 @@ func (r *router) manageRoute(route table.Route, action string) error {
return nil
}
// manageServiceRoutes applies action on all routes of given service.
// manageServiceRoutes applies action to all routes of the service.
// It returns error of the action fails with error.
func (r *router) manageServiceRoutes(service *registry.Service, action string) error {
// action is the routing table action
@ -138,7 +138,7 @@ func (r *router) manageServiceRoutes(service *registry.Service, action string) e
return nil
}
// manageRegistryRoutes applies action on all routes of each service found in the registry.
// manageRegistryRoutes applies action to all routes of each service found in the registry.
// It returns error if either the services failed to be listed or the routing table action fails.
func (r *router) manageRegistryRoutes(reg registry.Registry, action string) error {
services, err := reg.ListServices()