Skip to content

Commit

Permalink
[-] fix self-destruct interval chains, fixes #631 (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub authored Jan 25, 2024
1 parent b75f72a commit d45e177
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 d45e177

Please sign in to comment.