Skip to content

Commit

Permalink
Update x/mongo/driver/topology/topology.go
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Dale <9760375+matthewdale@users.noreply.github.com>
  • Loading branch information
prestonvasquez and matthewdale authored May 31, 2024
1 parent 95ba700 commit d72db2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/mongo/driver/topology/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ func equalTopologies(topo1, topo2 description.Topology) bool {
return false
}

topoServers := make(map[string]description.Server)
topoServers := make(map[string]description.Server, len(topo1.Servers))
for _, s := range topo1.Servers {
topoServers[s.Addr.String()] = s
}
Expand Down

0 comments on commit d72db2e

Please sign in to comment.