linting fixes, go.mod fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2019-12-04 13:36:30 +03:00
parent cfc6352b4a
commit 7b78f3e986

View File

@ -809,8 +809,8 @@ func (g *gossipRegistry) GetService(name string) ([]*registry.Service, error) {
} }
func (g *gossipRegistry) ListServices() ([]*registry.Service, error) { func (g *gossipRegistry) ListServices() ([]*registry.Service, error) {
var services []*registry.Service
g.RLock() g.RLock()
services := make([]*registry.Service, 0, len(g.services))
for _, service := range g.services { for _, service := range g.services {
services = append(services, service...) services = append(services, service...)
} }