diff --git a/state/state.go b/state/state.go index 210eb62c8..532e14872 100644 --- a/state/state.go +++ b/state/state.go @@ -42,7 +42,9 @@ type StatePersister interface { } // Locker is implemented to lock state during command execution. +// The optional info parameter can be recorded with the lock, but the +// implementation should not depend in its value. type Locker interface { - Lock(reason string) error + Lock(info string) error Unlock() error }