Skip to content

Commit

Permalink
Merge pull request #1380 from anyproto/go-3745-localdiscovery-issue
Browse files Browse the repository at this point in the history
GO-3745 fix typo in the local peers addresses construction
  • Loading branch information
requilence committed Jul 10, 2024
2 parents a6671e5 + d087f05 commit fe53445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion space/spacecore/rpchandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *rpcHandler) SpaceExchange(ctx context.Context, request *clientspaceprot
}
var portAddrs []string
for _, ip := range request.LocalServer.Ips {
portAddrs = append(portAddrs, fmt.Sprintf("%spaceCore:%d", ip, request.LocalServer.Port))
portAddrs = append(portAddrs, fmt.Sprintf("%s:%d", ip, request.LocalServer.Port))
}
r.s.peerService.SetPeerAddrs(peerId, portAddrs)
r.s.peerStore.UpdateLocalPeer(peerId, request.SpaceIds)
Expand Down

0 comments on commit fe53445

Please sign in to comment.