diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-05 02:42:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-05 02:52:50 +0900 |
| commit | eb5ee4fece0327b1183ae823d68e4cf4e3e1ced0 (patch) | |
| tree | 64e1c411e9d0a29637982519b9bd3a5ff6642d1a /internal/app/app.go | |
| parent | 9462af08f38fefe40d985383d8825258a6d1f0a8 (diff) | |
internal/app: modularise outcome finalise
This is the initial effort of splitting up host and container side of finalisation for params to shim. The new layout also enables much finer grained unit testing of each step, as well as partition access to per-app state for each step.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app.go')
| -rw-r--r-- | internal/app/app.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/app/app.go b/internal/app/app.go index c5a3e0f4..102c273a 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -18,8 +18,8 @@ func Main(ctx context.Context, msg container.Msg, config *hst.Config) { log.Fatal(err) } - seal := outcome{id: &stringPair[state.ID]{id, id.String()}, syscallDispatcher: direct{}} - if err := seal.finalise(ctx, msg, config); err != nil { + seal := outcome{syscallDispatcher: direct{}} + if err := seal.finalise(ctx, msg, &id, config); err != nil { printMessageError("cannot seal app:", err) os.Exit(1) } |
