Skip to content

Commit

Permalink
change prune timeout to use pruneInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon committed Dec 9, 2024
1 parent 79b5899 commit ed468a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oracle/service/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func PruneVoteBuffers(oracleInfo *types.OracleInfo, consensusState *cs.State) {
ticker := time.Tick(pruneInterval)
for range ticker {
// keep this timeout close to lowest oracle resolution so that buffers do not build up even when chain is stale, but oracle service is still running
timeout := time.Second * 3
timeout := pruneInterval
chainState, err := consensusState.GetStateWithTimeout(timeout)
if err != nil {
log.Warnf("PruneVoteBuffers: timed out trying to get chain state after %v", timeout)
Expand Down

0 comments on commit ed468a4

Please sign in to comment.