linting fixes, go.mod fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
cfc6352b4a
commit
7b78f3e986
@ -809,8 +809,8 @@ func (g *gossipRegistry) GetService(name string) ([]*registry.Service, error) {
|
||||
}
|
||||
|
||||
func (g *gossipRegistry) ListServices() ([]*registry.Service, error) {
|
||||
var services []*registry.Service
|
||||
g.RLock()
|
||||
services := make([]*registry.Service, 0, len(g.services))
|
||||
for _, service := range g.services {
|
||||
services = append(services, service...)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user