diff options
Diffstat (limited to 'internal/state/simple.go')
| -rw-r--r-- | internal/state/simple.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/state/simple.go b/internal/state/simple.go index a18d1523..ad3e4726 100644 --- a/internal/state/simple.go +++ b/internal/state/simple.go @@ -211,9 +211,8 @@ func (b *simpleBackend) Len() (int, error) { } // NewSimple returns an instance of a file-based store. -// Store prefix is typically (runDir, uid). -func NewSimple(prefix ...string) Store { +func NewSimple(runDir string, prefix ...string) Store { b := new(simpleStore) - b.path = prefix + b.path = append([]string{runDir, "state"}, prefix...) return b } |
