diff --git a/core/workflow/safestate.go b/core/workflow/safestate.go index 86c4f1197..a2673bda6 100644 --- a/core/workflow/safestate.go +++ b/core/workflow/safestate.go @@ -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 diff --git a/core/workflow/safestatus.go b/core/workflow/safestatus.go index 044e86be6..ac23d38ea 100644 --- a/core/workflow/safestatus.go +++ b/core/workflow/safestatus.go @@ -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