diff --git a/db/executor.go b/db/executor.go index 4b067d83..e3ef0e40 100644 --- a/db/executor.go +++ b/db/executor.go @@ -249,8 +249,8 @@ func (e *executor) operate(ctx context.Context, stm sql.Statement) (res []interf if tim := ctx.Err(); err == nil && tim != nil { res, err = nil, &TimerError{timer: stm.Duration()} } + canc() }() - defer canc() } }