Fix route selection IDs (#1890)

This commit is contained in:
Viktor Liu
2024-04-29 18:43:14 +02:00
committed by GitHub
parent fd26e989e3
commit e435e39158
3 changed files with 28 additions and 8 deletions

View File

@@ -156,7 +156,11 @@ func (c *clientNetwork) getBestRouteFromStatuses(routePeerStatuses map[string]ro
if currScore != 0 && currScore < chosenScore+0.1 {
return currID
} else {
log.Infof("new chosen route is %s with peer %s with score %f for network %s", chosen, c.routes[chosen].Peer, chosenScore, c.network)
var peer string
if route := c.routes[chosen]; route != nil {
peer = route.Peer
}
log.Infof("new chosen route is %s with peer %s with score %f for network %s", chosen, peer, chosenScore, c.network)
}
}