mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-23 16:13:23 +08:00
Go frmt proj
This commit is contained in:
@@ -8,9 +8,9 @@ import (
|
||||
|
||||
inet "gx/ipfs/QmbD5yKbXahNvoMqzeuNyKQA9vAs9fUvJg2GXeWU1fVqY5/go-libp2p-net"
|
||||
|
||||
p2p "github.com/avive/go-libp2p/examples/multipro/pb"
|
||||
uuid "github.com/google/uuid"
|
||||
"github.com/ipfs/go-ipfs/thirdparty/assert"
|
||||
p2p "github.com/avive/go-libp2p/examples/multipro/pb"
|
||||
protobufCodec "github.com/multiformats/go-multicodec/protobuf"
|
||||
"gx/ipfs/QmRS46AyqtpJBsf1zmQdeizSDEzo1qkWR7rdEuPFAv8237/go-libp2p-host"
|
||||
)
|
||||
@@ -51,7 +51,7 @@ func (e EchoProtocol) onEchoRequest(s inet.Stream) {
|
||||
log.Println("Failed to authenticate message")
|
||||
return
|
||||
} else {
|
||||
log.Println("Authenticated request content was generated by author node :-)")
|
||||
//log.Println("Authenticated request content was generated by author node :-)")
|
||||
}
|
||||
|
||||
log.Printf("%s: Sending echo response to %s. Message id: %s...", s.Conn().LocalPeer(), s.Conn().RemotePeer(), data.MessageData.Id)
|
||||
@@ -101,7 +101,7 @@ func (e EchoProtocol) onEchoResponse(s inet.Stream) {
|
||||
log.Println("Failed to authenticate message")
|
||||
return
|
||||
} else {
|
||||
log.Println("Authenticated response content generated by claimed node :-)")
|
||||
//log.Println("Authenticated response content generated by claimed node :-)")
|
||||
}
|
||||
|
||||
// locate request data and remove it if found
|
||||
|
Reference in New Issue
Block a user