From 2220055e26bff8b426ebf086d09ba242e5180e76 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Thu, 10 Oct 2024 11:03:31 +0900 Subject: state/simple: prefix store path Signed-off-by: Ophestra Umiker --- internal/state/simple.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/state/simple.go') 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 } -- cgit v1.3.1