switch to google's uuid library

This commit is contained in:
Steven Allen
2018-07-12 13:25:02 +02:00
parent 934606d0f2
commit 67fb60d95b
4 changed files with 10 additions and 10 deletions

View File

@@ -8,10 +8,10 @@ import (
inet "github.com/libp2p/go-libp2p-net"
uuid "github.com/google/uuid"
"github.com/libp2p/go-libp2p-host"
pb "github.com/libp2p/go-libp2p/examples/multipro/pb"
protobufCodec "github.com/multiformats/go-multicodec/protobuf"
uuid "github.com/satori/go.uuid"
)
// pattern: /protocol-name/request-or-response-message/version
@@ -126,7 +126,7 @@ func (e *EchoProtocol) Echo(host host.Host) bool {
// create message data
req := &pb.EchoRequest{
MessageData: e.node.NewMessageData(uuid.Must(uuid.NewV4()).String(), false),
MessageData: e.node.NewMessageData(uuid.New().String(), false),
Message: fmt.Sprintf("Echo from %s", e.node.ID())}
signature, err := e.node.signProtoMessage(req)