Maint: minor DNS loop fixes and changes

This commit is contained in:
Quentin McGaw (desktop)
2021-07-16 21:21:09 +00:00
parent 39068dda17
commit 7e50c95823
2 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ func (s *state) ApplyStatus(ctx context.Context, status models.LoopStatus) (
}
s.SetStatus(newStatus)
return status.String(), nil
return newStatus.String(), nil
default:
return "", fmt.Errorf("%w: %s: it can only be one of: %s, %s",
ErrInvalidStatus, status, constants.Running, constants.Stopped)