Change lock reason -> info

This makes it more apparent that the information passed in isn't
required nor will it conform to any standard. There may be call sites
that can't provide good contextual info, and we don't want to count on
that value.
This commit is contained in:
James Bardin 2017-02-02 17:27:53 -05:00
parent 9cdba1f199
commit 1078781487
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ type StatePersister interface {
} }
// Locker is implemented to lock state during command execution. // 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 { type Locker interface {
Lock(reason string) error Lock(info string) error
Unlock() error Unlock() error
} }