diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-10 11:03:31 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-10 11:03:31 +0900 |
| commit | 2220055e26bff8b426ebf086d09ba242e5180e76 (patch) | |
| tree | 9e66c82b9978bf217f4ff01036a592b7b06e989b /internal/state/simple.go | |
| parent | f4c44a9441dea0054f9e4b20c2a3e8e71d9fde8f (diff) | |
state/simple: prefix store path
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
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 } |
