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-kad-dht
Commits
9ebf3068
Commit
9ebf3068
authored
Jan 04, 2021
by
Adin Schmahmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: factor out reused string
parent
2c313a81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pb/protocol_messenger.go
pb/protocol_messenger.go
+3
-2
No files found.
pb/protocol_messenger.go
View file @
9ebf3068
...
...
@@ -75,8 +75,9 @@ func (pm *ProtocolMessenger) PutValue(ctx context.Context, p peer.ID, rec *recpb
}
if
!
bytes
.
Equal
(
rpmes
.
GetRecord
()
.
Value
,
pmes
.
GetRecord
()
.
Value
)
{
logger
.
Infow
(
"value not put correctly"
,
"put-message"
,
pmes
,
"get-message"
,
rpmes
)
return
errors
.
New
(
"value not put correctly"
)
const
errStr
=
"value not put correctly"
logger
.
Infow
(
errStr
,
"put-message"
,
pmes
,
"get-message"
,
rpmes
)
return
errors
.
New
(
errStr
)
}
return
nil
...
...
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