whisper: gofmt to quell linter

This commit is contained in:
Guillaume Ballet 2018-04-02 23:33:18 +02:00
parent 82bc100542
commit ae8c0743cc

View file

@ -17,12 +17,12 @@
package whisperv6 package whisperv6
import ( import (
"bufio"
"bytes" "bytes"
"fmt"
"github.com/ethereum/go-ethereum/rlp"
"io/ioutil" "io/ioutil"
"time" "time"
"bufio"
"github.com/ethereum/go-ethereum/rlp"
"fmt"
"github.com/ethereum/go-ethereum/p2p" "github.com/ethereum/go-ethereum/p2p"
inet "github.com/libp2p/go-libp2p-net" inet "github.com/libp2p/go-libp2p-net"
@ -67,7 +67,7 @@ func (stream *LibP2PStream) WriteMsg(msg p2p.Msg) error {
if err != nil { if err != nil {
return fmt.Errorf("Error reading payload: %v", err) return fmt.Errorf("Error reading payload: %v", err)
} }
m := serializableP2PMsg {msg.Code, msg.Size, payload, msg.ReceivedAt} m := serializableP2PMsg{msg.Code, msg.Size, payload, msg.ReceivedAt}
data, err := rlp.EncodeToBytes(m) data, err := rlp.EncodeToBytes(m)
if err != nil { if err != nil {