Skip to content

Commit

Permalink
remove idle timeout in favor to use default (5 seg) because otherwise…
Browse files Browse the repository at this point in the history
… keep cpu in high load.
  • Loading branch information
jorgecuesta committed Nov 23, 2022
1 parent 8a78559 commit 3caaea5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/pocketcore/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ func InitEvidenceWorker(_ types.Config, logger log.Logger) {
logger.Error(fmt.Sprintf("evidence storage task panicked: %v", p))
}
GlobalEvidenceWorker = pond.New(
1, 0,
pond.IdleTimeout(100),
1, 0, pond.MinWorkers(1),
pond.PanicHandler(panicHandler),
pond.Strategy(pond.Balanced()),
)
Expand Down

0 comments on commit 3caaea5

Please sign in to comment.