Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-peerstore
Commits
cdec762f
Commit
cdec762f
authored
Mar 28, 2020
by
Aarsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix add addrs bug
parent
9868efd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
pstoremem/addr_book.go
pstoremem/addr_book.go
+0
-15
No files found.
pstoremem/addr_book.go
View file @
cdec762f
...
...
@@ -240,21 +240,6 @@ func (mab *memoryAddrBook) addAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du
}
}
}
// // when adding signed addrs, make sure only the addrs from the input list remain.
// if signed {
// for k := range amap {
// _, ok := addrSet[k]
// if !ok {
// delete(amap, k)
// }
// }
// }
// if we've expired all the signed addresses for a peer, remove their signed routing state record
if
len
(
amap
)
==
0
{
delete
(
s
.
signedPeerRecords
,
p
)
}
}
// SetAddr calls mgr.SetAddrs(p, addr, ttl)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment