Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
Cancel pending clock tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Oct 18, 2023
1 parent 4f9273e commit b60fb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/engine/clock/blocktime/clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewProvider(opts ...options.Option[Clock]) module.Provider[*engine.Engine,
return options.Apply(&Clock{
acceptedTime: NewRelativeTime(),
confirmedTime: NewRelativeTime(),
workerPool: e.Workers.CreatePool("Clock", workerpool.WithWorkerCount(1)),
workerPool: e.Workers.CreatePool("Clock", workerpool.WithWorkerCount(1), workerpool.WithCancelPendingTasksOnShutdown(true)),
}, opts, func(c *Clock) {
e.HookConstructed(func() {
latestCommitmentIndex := e.Storage.Settings().LatestCommitment().Slot()
Expand Down

0 comments on commit b60fb44

Please sign in to comment.