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
15428348
Unverified
Commit
15428348
authored
Jun 05, 2020
by
Ignacio Hagopian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix other race
Signed-off-by:
Ignacio Hagopian
<
jsign.uy@gmail.com
>
parent
33ea6928
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
pstoreds/addr_book.go
pstoreds/addr_book.go
+2
-0
No files found.
pstoreds/addr_book.go
View file @
15428348
...
@@ -317,6 +317,8 @@ func (ab *dsAddrBook) storeSignedPeerRecord(p peer.ID, envelope *record.Envelope
...
@@ -317,6 +317,8 @@ func (ab *dsAddrBook) storeSignedPeerRecord(p peer.ID, envelope *record.Envelope
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
pr
.
Lock
()
defer
pr
.
Unlock
()
pr
.
CertifiedRecord
=
&
pb
.
AddrBookRecord_CertifiedRecord
{
pr
.
CertifiedRecord
=
&
pb
.
AddrBookRecord_CertifiedRecord
{
Seq
:
rec
.
Seq
,
Seq
:
rec
.
Seq
,
Raw
:
envelopeBytes
,
Raw
:
envelopeBytes
,
...
...
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