Skip to content

Commit

Permalink
Revert debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Nov 27, 2024
1 parent 6b937cd commit 71bd8c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func NewWithHost(p2phost host.Host, peers string, feederNode bool, bc *blockchai

func makeDHT(p2phost host.Host, addrInfos []peer.AddrInfo) (*dht.IpfsDHT, error) {
return dht.New(context.Background(), p2phost,
dht.ProtocolPrefix(starknet.Prefix+"/kad/SN_SEPOLIA/1.0.0"),
dht.ProtocolPrefix(starknet.Prefix),
dht.BootstrapPeers(addrInfos...),
dht.RoutingTableRefreshPeriod(routingTableRefreshPeriod),
dht.Mode(dht.ModeServer),
Expand Down
1 change: 0 additions & 1 deletion p2p/starknet/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func getBuffer() *bytes.Buffer {
func streamHandler[ReqT proto.Message](ctx context.Context, wg *sync.WaitGroup,
stream network.Stream, reqHandler func(req ReqT) (iter.Seq[proto.Message], error), log utils.SimpleLogger,
) {
fmt.Println("streamHandler")
wg.Add(1)
defer wg.Done()

Expand Down

0 comments on commit 71bd8c4

Please sign in to comment.