We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17fd610 commit 88b1a70Copy full SHA for 88b1a70
1 file changed
p2p/host/autorelay/relay_finder.go
@@ -251,6 +251,9 @@ func (rf *relayFinder) updateAddrs() {
251
// This function returns the p2p-circuit addrs for the host.
252
// The returned addresses are of the form <relay's-addr>/p2p/<relay's-id>/p2p-circuit.
253
func (rf *relayFinder) getCircuitAddrs() []ma.Multiaddr {
254
+ rf.relayMx.Lock()
255
+ defer rf.relayMx.Unlock()
256
+
257
raddrs := make([]ma.Multiaddr, 0, 4*len(rf.relays)+4)
258
for p := range rf.relays {
259
addrs := cleanupAddressSet(rf.host.Peerstore().Addrs(p))
0 commit comments