From 13a8cfe7f3b7334ce1d7e4f9b7fc809126df86be Mon Sep 17 00:00:00 2001 From: Milos Gajdos Date: Wed, 24 Jul 2019 17:22:27 +0100 Subject: [PATCH] Small function documentation update --- network/router/default.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/router/default.go b/network/router/default.go index ca336619..9340e8df 100644 --- a/network/router/default.go +++ b/network/router/default.go @@ -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()