There was an error while loading. Please reload this page.
1 parent b88528a commit eacef71Copy full SHA for eacef71
1 file changed
services/requester/batch_tx_pool.go
@@ -194,11 +194,11 @@ func (t *BatchTxPool) Add(
194
}
195
196
if err != nil {
197
- t.txMux.Lock()
198
// If there was an error during tx submission, remove the entry
199
// from the cache, to not block future requests with same nonce.
+ // Note: No need to acquire the `t.txMux` lock, `Remove` already
200
+ // has an internal lock.
201
t.eoaActivityCache.Remove(from)
- t.txMux.Unlock()
202
203
t.logger.Error().Err(err).Msgf(
204
"failed to submit single Flow transaction for EOA: %s",
0 commit comments