code: func (sp *serverPeer) OnWrite(_ *peer.Peer, bytesWritten int, msg wire.Message, err error) {
  	sp.server.AddBytesSent(uint64(bytesWritten))
  }
docs: // OnWrite is invoked when a peer sends a message and it is used to update
  // the bytes sent by the server.