Skip to content

Commit

Permalink
WIP: slog error
Browse files Browse the repository at this point in the history
  • Loading branch information
facuMH committed Dec 17, 2024
1 parent 142d448 commit 290b985
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion evmcore/tx_cacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package evmcore

import (
"log/slog"
"runtime"

"github.com/ethereum/go-ethereum/core/types"
Expand Down Expand Up @@ -62,7 +63,9 @@ func newTxSenderCacher(threads int) *txSenderCacher {
func (cacher *txSenderCacher) cache() {
for task := range cacher.tasks {
for i := 0; i < len(task.txs); i += task.inc {
types.Sender(task.signer, task.txs[i])
if _, err := types.Sender(task.signer, task.txs[i]); err != nil {
slog.Warn("Failed to recover sender", "err", err)
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion topicsdb/search_parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package topicsdb

import (
"context"
"log/slog"
"sync"

"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -117,5 +118,7 @@ func (tt *index) scanPatternVariant(pos uint8, variant common.Hash, start uint64
break
}
}
onMatched(nil)
if _, err := onMatched(nil); err != nil {
slog.Warn("searchParallel", "err", err)
}
}

0 comments on commit 290b985

Please sign in to comment.