Add linter misspell (#530)

* Add linter misspell

* Fix spelling

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
Lukas
2021-11-24 02:01:12 +01:00
committed by GitHub
parent 25bf91bd37
commit 116c310820
19 changed files with 35 additions and 35 deletions

View File

@@ -98,12 +98,12 @@ func (r *Runner) Run(ctx context.Context) error {
ctx, cancel := context.WithTimeout(ctxmeta, timeout)
defer cancel()
cancelled := abool.New()
canceled := abool.New()
go func() {
logger.Debug().Msg("listen for cancel signal")
if werr := r.client.Wait(ctx, work.ID); werr != nil {
cancelled.SetTo(true)
canceled.SetTo(true)
logger.Warn().Err(werr).Msg("cancel signal received")
cancel()
@@ -311,7 +311,7 @@ func (r *Runner) Run(ctx context.Context) error {
state.ExitCode = 1
state.Error = err.Error()
}
if cancelled.IsSet() {
if canceled.IsSet() {
state.ExitCode = 137
}
}