Browse Source

remove unnecessary plus [ci skip]

pull/779/merge
Petabyte Storage 7 years ago
committed by Ethan Buchman
parent
commit
ceedd4d968
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      p2p/peer.go

+ 5
- 5
p2p/peer.go View File

@ -268,11 +268,11 @@ func (p *peer) CanSend(chID byte) bool {
} }
// WriteTo writes the peer's public key to w. // WriteTo writes the peer's public key to w.
func (p *peer) WriteTo(w io.Writer) (n int64, err error) {
var n_ int
wire.WriteString(p.key, w, &n_, &err)
n += int64(n_)
return
func (p *peer) WriteTo(w io.Writer) (int64, error) {
var n int
var err error
wire.WriteString(p.key, w, &n, &err)
return int64(n), err
} }
// String representation. // String representation.


Loading…
Cancel
Save