remove dup bufio.NewWriter (#223)

pull/228/head
Richard Liu 6 years ago committed by GitHub
parent 76f9a07cf9
commit 79d7ac30c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/host/hostv2/hostv2.go

@ -83,7 +83,7 @@ func (host *HostV2) SendMessage(p p2p.Peer, message []byte) error {
}
// Create a buffered stream so that read and writes are non blocking.
w := bufio.NewWriter(bufio.NewWriter(s))
w := bufio.NewWriter(s)
// Create a thread to read and write data.
go writeData(w, message)

Loading…
Cancel
Save