Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/workflow/safestate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"sync"
)

// SafeState is a thread-safe structure that holds the state of a role.
type SafeState struct {
mu sync.RWMutex
state sm.State
Expand Down
1 change: 1 addition & 0 deletions core/workflow/safestatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/spf13/viper"
)

// SafeStatus is a thread-safe structure that holds the status of a role.
type SafeStatus struct {
mu sync.RWMutex
status task.Status
Expand Down