Refactor WorkerCtx to use a boolean for isStopWorker

This commit is contained in:
Alexandr Stelnykovych
2025-06-26 17:55:10 +03:00
parent 5d37c126bc
commit bcaf0b90f0
2 changed files with 7 additions and 8 deletions

View File

@@ -81,7 +81,7 @@ func (m *Manager) hasStopWorker() bool {
if w == nil {
continue
}
if w.isStopWorker.Load() {
if w.isStopWorker {
return true
}
}