Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
765fe446
Commit
765fe446
authored
Nov 14, 2019
by
Guillaume Ballet
Committed by
Felix Lange
Nov 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whisper/whisperv6: fix staticcheck issues (#20288)
parent
afe0b654
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
topic.go
whisper/whisperv6/topic.go
+1
-2
whisper.go
whisper/whisperv6/whisper.go
+1
-1
No files found.
whisper/whisperv6/topic.go
View file @
765fe446
...
...
@@ -19,7 +19,6 @@
package
whisperv6
import
(
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
)
...
...
@@ -43,7 +42,7 @@ func BytesToTopic(b []byte) (t TopicType) {
// String converts a topic byte array to a string representation.
func
(
t
*
TopicType
)
String
()
string
{
return
common
.
ToHex
(
t
[
:
])
return
hexutil
.
Encode
(
t
[
:
])
}
// MarshalText returns the hex representation of t.
...
...
whisper/whisperv6/whisper.go
View file @
765fe446
...
...
@@ -352,7 +352,7 @@ func (whisper *Whisper) getPeer(peerID []byte) (*Peer, error) {
return
p
,
nil
}
}
return
nil
,
fmt
.
Errorf
(
"
C
ould not find peer with ID: %x"
,
peerID
)
return
nil
,
fmt
.
Errorf
(
"
c
ould not find peer with ID: %x"
,
peerID
)
}
// AllowP2PMessagesFromPeer marks specific peer trusted,
...
...
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