Skip to content

Commit

Permalink
[-] fix self-destruct interval chains, fixes #631
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Jan 24, 2024
1 parent b75f72a commit 0d222de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/scheduler/interval_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ func (sch *Scheduler) isValid(ichain IntervalChain) bool {
}

func (sch *Scheduler) reschedule(ctx context.Context, ichain IntervalChain) {
if ichain.SelfDestruct {
sch.pgengine.DeleteChain(ctx, ichain.ChainID)
return
}
log.GetLogger(ctx).Debug("Sleeping before next execution of interval chain")
select {
case <-time.After(time.Duration(ichain.Interval) * time.Second):
Expand Down

0 comments on commit 0d222de

Please sign in to comment.