Skip to content

Commit c083fa3

Browse files
committed
document what is safe about SafeStatus and SafeState
OCTRL-873
1 parent a9328db commit c083fa3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

core/workflow/safestate.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"sync"
3131
)
3232

33+
// SafeState is a thread-safe structure that holds the state of a role.
3334
type SafeState struct {
3435
mu sync.RWMutex
3536
state sm.State

core/workflow/safestatus.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"github.com/spf13/viper"
3535
)
3636

37+
// SafeStatus is a thread-safe structure that holds the status of a role.
3738
type SafeStatus struct {
3839
mu sync.RWMutex
3940
status task.Status

0 commit comments

Comments
 (0)