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:
commit
fe53445957
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue