From d45e177db23e15b1feec13c584da7515295eca20 Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Thu, 25 Jan 2024 12:55:14 +0100 Subject: [PATCH] [-] fix self-destruct interval chains, fixes #631 (#637) --- internal/scheduler/interval_chain.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/scheduler/interval_chain.go b/internal/scheduler/interval_chain.go index 6f1ae84..1859133 100644 --- a/internal/scheduler/interval_chain.go +++ b/internal/scheduler/interval_chain.go @@ -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):