From 528e1a6c277f7457154c6117a09c120f11eaaae5 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 9 Jan 2024 17:17:45 -0500 Subject: [PATCH] chore: remove debug lines --- protocol/storage_location.go | 1 - service/p2p.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/protocol/storage_location.go b/protocol/storage_location.go index cd924aa..eb285eb 100644 --- a/protocol/storage_location.go +++ b/protocol/storage_location.go @@ -41,7 +41,6 @@ func (s *StorageLocation) HandleMessage(node interfaces.Node, peer net.Peer, ver msg := s.IncomingMessage().Original() hash := encoding.NewMultihash(msg[1:34]) // Replace NewMultihash with appropriate function - fmt.Println("Hash:", hash) typeOfData := msg[34] diff --git a/service/p2p.go b/service/p2p.go index e60c8b3..4ea474d 100644 --- a/service/p2p.go +++ b/service/p2p.go @@ -17,7 +17,6 @@ import ( bolt "go.etcd.io/bbolt" "go.uber.org/zap" "net/url" - "reflect" "sort" "sync" "time" @@ -298,7 +297,6 @@ func (p *P2PImpl) OnNewPeerListen(peer net.Peer, verifyId bool) { imsg.SetOriginal(message) handler.SetIncomingMessage(imsg) handler.SetSelf(handler) - fmt.Println(reflect.TypeOf(handler)) err := msgpack.Unmarshal(imsg.Data(), handler) if err != nil { return err