Skip to content

Commit 03bcd24

Browse files
committed
fix(headers): reduce diff
1 parent 229271e commit 03bcd24

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/p2p/libp2p/libp2p.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,8 +961,6 @@ func (s *Service) NewStream(ctx context.Context, overlay swarm.Address, headers
961961
remoteSupportsTrace := peerCaps != nil && peerCaps.TraceHeaders
962962
bothSupportTrace := localSupportsTrace && remoteSupportsTrace
963963

964-
s.logger.Debug("NewStream capability check", "overlay", overlay, "local_supports", localSupportsTrace, "remote_supports", remoteSupportsTrace, "peer_caps", peerCaps, "both_support", bothSupportTrace)
965-
966964
// Only exchange headers if BOTH local and remote peer support trace headers
967965
if bothSupportTrace {
968966
// Both support trace headers - exchange them with timeout
@@ -981,7 +979,6 @@ func (s *Service) NewStream(ctx context.Context, overlay swarm.Address, headers
981979
return nil, fmt.Errorf("send headers: %w", err)
982980
}
983981
}
984-
// If not both supporting trace headers, skip header exchange entirely - no wire communication
985982

986983
return stream, nil
987984
}

0 commit comments

Comments
 (0)