aboutsummaryrefslogtreecommitdiff
path: root/rutina.go
diff options
context:
space:
mode:
authorNikolay Oskin <naoskin@tsum.ru>2022-08-06 13:30:40 +0300
committerNikolay Oskin <naoskin@tsum.ru>2022-08-06 13:30:40 +0300
commit4a305861d99d7e2d76615c06ef49dda5d849bf40 (patch)
tree63cfe20440f7d7c3aa3cf6ee5367c4e2c756af56 /rutina.go
parent14fcf184ae40729e270821115e2ba39c475badb9 (diff)
return ErrRunLimit when restartLimit exceeded
Diffstat (limited to 'rutina.go')
-rwxr-xr-xrutina.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rutina.go b/rutina.go
index 3cf140c..4206f54 100755
--- a/rutina.go
+++ b/rutina.go
@@ -219,7 +219,7 @@ func (p *process) run(pctx context.Context, errCh chan error, logger logger) err
if errCh != nil {
errCh <- ErrRunLimit
}
- return nil
+ return ErrRunLimit
}
}
logger("restarting process #%d", p.id)