1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-10 18:10:49 +09:00

Merge pull request #1380 from anyproto/go-3745-localdiscovery-issue

GO-3745 fix typo in the local peers addresses construction
This commit is contained in:
Roman Khafizianov 2024-07-10 18:36:28 +02:00 committed by GitHub
commit fe53445957
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -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)