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
9868efd0
Commit
9868efd0
authored
Mar 27, 2020
by
Aarsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix memory store signed peer record bug
parent
0860fe0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pstoremem/addr_book.go
pstoremem/addr_book.go
+1
-1
No files found.
pstoremem/addr_book.go
View file @
9868efd0
...
@@ -252,7 +252,7 @@ func (mab *memoryAddrBook) addAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du
...
@@ -252,7 +252,7 @@ func (mab *memoryAddrBook) addAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du
// }
// }
// if we've expired all the signed addresses for a peer, remove their signed routing state record
// if we've expired all the signed addresses for a peer, remove their signed routing state record
if len(a
ddrs
) == 0 {
if
len
(
a
map
)
==
0
{
delete
(
s
.
signedPeerRecords
,
p
)
delete
(
s
.
signedPeerRecords
,
p
)
}
}
}
}
...
...
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