aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/outcome/process.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/outcome/process.go b/internal/outcome/process.go
index 1baa588c..78570d26 100644
--- a/internal/outcome/process.go
+++ b/internal/outcome/process.go
@@ -29,6 +29,9 @@ const (
shimSetupTimeout = 5 * time.Second
)
+// NewStore returns the address of a new instance of [store.Store].
+func NewStore(sc *hst.Paths) *store.Store { return store.New(sc.SharePath.Append("state")) }
+
// main carries out outcome and terminates. main does not return.
func (k *outcome) main(msg message.Msg) {
if k.ctx == nil || k.sys == nil || k.state == nil {
@@ -119,7 +122,7 @@ func (k *outcome) main(msg message.Msg) {
switch processState {
case processStart:
- if h, err := store.New(k.state.sc.RunDirPath.Append("state")).Handle(k.state.identity.unwrap()); err != nil {
+ if h, err := NewStore(&k.state.sc).Handle(k.state.identity.unwrap()); err != nil {
perrorFatal(err, "obtain store segment handle", processFinal)
continue
} else {