mirror of
				https://github.com/libp2p/go-libp2p.git
				synced 2025-10-31 11:56:37 +08:00 
			
		
		
		
	Go frmt proj
This commit is contained in:
		| @@ -8,8 +8,8 @@ import ( | ||||
|  | ||||
| 	inet "gx/ipfs/QmbD5yKbXahNvoMqzeuNyKQA9vAs9fUvJg2GXeWU1fVqY5/go-libp2p-net" | ||||
|  | ||||
| 	uuid "github.com/google/uuid" | ||||
| 	p2p "github.com/avive/go-libp2p/examples/multipro/pb" | ||||
| 	uuid "github.com/google/uuid" | ||||
| 	protobufCodec "github.com/multiformats/go-multicodec/protobuf" | ||||
| 	"gx/ipfs/QmRS46AyqtpJBsf1zmQdeizSDEzo1qkWR7rdEuPFAv8237/go-libp2p-host" | ||||
| ) | ||||
| @@ -52,7 +52,7 @@ func (p PingProtocol) onPingRequest(s inet.Stream) { | ||||
| 		log.Println("Failed to authenticate message") | ||||
| 		return | ||||
| 	} else { | ||||
| 		log.Println("Authenticated request content was generated by claimed node :-)") | ||||
| 		//log.Println("Authenticated request content was generated by claimed node :-)") | ||||
| 	} | ||||
|  | ||||
| 	// generate response message | ||||
| @@ -100,7 +100,7 @@ func (p PingProtocol) onPingResponse(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
	 Aviv Eyal
					Aviv Eyal