We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db094e commit ca9e010Copy full SHA for ca9e010
p2p/protocol.go
@@ -85,9 +85,9 @@ type EthProtocolOptions struct {
85
ShouldBroadcastBlockHashes bool
86
87
// Cache sizes for known tx/block tracking per peer
88
- MaxKnownTxs int
89
- MaxKnownBlocks int
90
- PeerCacheTTL time.Duration
+ MaxKnownTxs int
+ MaxKnownBlocks int
+ PeerCacheTTL time.Duration
91
}
92
93
// HeadBlock contains the necessary head block data for the status message.
@@ -248,8 +248,9 @@ func (c *conn) readStatus(packet *eth.StatusPacket) error {
248
if err != nil {
249
return err
250
251
+
252
defer func() {
- if err := msg.Discard(); err != nil {
253
+ if err = msg.Discard(); err != nil {
254
c.logger.Error().Err(err).Msg("Failed to discard message")
255
256
}()
0 commit comments