Fix indentation and formatting in tx_fetcher.go

This commit is contained in:
rjl493456442 2025-09-30 19:47:04 +08:00 committed by GitHub
parent a02f418945
commit de60ff5036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -376,8 +376,8 @@ func (f *TxFetcher) Enqueue(peer string, txs []*types.Transaction, direct bool)
// If 'other reject' is >25% of the deliveries in any batch, sleep a bit. // If 'other reject' is >25% of the deliveries in any batch, sleep a bit.
if otherreject > int64(len(batch)/4) { if otherreject > int64(len(batch)/4) {
time.Sleep(200 * time.Millisecond)
log.Debug("Peer delivering invalid transactions", "peer", peer, "rejected", otherreject) log.Debug("Peer delivering invalid transactions", "peer", peer, "rejected", otherreject)
time.Sleep(200 * time.Millisecond)
} }
} }
select { select {