aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/peer_error.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-08 19:08:43 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-05-08 19:08:43 +0800
commit864e80a48fd18fda89b80b11f9116c4e11cb835d (patch)
tree1eb9aa6bbae718b9505e67f4464c6750c08e51eb /p2p/peer_error.go
parenta42be3b78dcb70ea3c44ba46c277cf41ef0bba23 (diff)
downloaddexon-864e80a48fd18fda89b80b11f9116c4e11cb835d.tar.gz
dexon-864e80a48fd18fda89b80b11f9116c4e11cb835d.tar.zst
dexon-864e80a48fd18fda89b80b11f9116c4e11cb835d.zip
p2p: fix some golint warnings (#16577)
Diffstat (limited to 'p2p/peer_error.go')
-rw-r--r--p2p/peer_error.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/peer_error.go b/p2p/peer_error.go
index a1cddb707..ab61bfef0 100644
--- a/p2p/peer_error.go
+++ b/p2p/peer_error.go
@@ -48,8 +48,8 @@ func newPeerError(code int, format string, v ...interface{}) *peerError {
return err
}
-func (self *peerError) Error() string {
- return self.message
+func (pe *peerError) Error() string {
+ return pe.message
}
var errProtocolReturned = errors.New("protocol returned")