mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-20 06:54:41 +00:00
remove unnecessary plus [ci skip]
This commit is contained in:
committed by
Ethan Buchman
parent
5534eb4707
commit
ceedd4d968
+5
-5
@@ -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) {
|
func (p *peer) WriteTo(w io.Writer) (int64, error) {
|
||||||
var n_ int
|
var n int
|
||||||
wire.WriteString(p.key, w, &n_, &err)
|
var err error
|
||||||
n += int64(n_)
|
wire.WriteString(p.key, w, &n, &err)
|
||||||
return
|
return int64(n), err
|
||||||
}
|
}
|
||||||
|
|
||||||
// String representation.
|
// String representation.
|
||||||
|
|||||||
Reference in New Issue
Block a user