Skip to content

Commit

Permalink
Migrating pr 230 to v2 (#231)
Browse files Browse the repository at this point in the history
Co-authored-by: Henrique Oelze <henrique.oelze@wildlifestudios.com>
  • Loading branch information
henriqueoelze and Henrique Oelze committed Aug 6, 2021
1 parent 08bf6b3 commit 067f6e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/etcd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (sd *etcdServiceDiscovery) GetServersByType(serverType string) (map[string]
// Create a new map to avoid concurrent read and write access to the
// map, this also prevents accidental changes to the list of servers
// kept by the service discovery.
ret := make(map[string]*Server, len(sd.serverMapByType))
ret := make(map[string]*Server,len(sd.serverMapByType[serverType]))
for k, v := range sd.serverMapByType[serverType] {
ret[k] = v
}
Expand Down

0 comments on commit 067f6e6

Please sign in to comment.