diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-23 22:51:10 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-23 22:59:02 +0900 |
| commit | dd94818f20c7a37bdd7c6129551759db1b09b65e (patch) | |
| tree | 1ea7c94b3f6aec92f037a3e58dc343c3b00cd5a2 /internal/app/app.go | |
| parent | 0fd357e7f64ec029489bbbcc7935005a26cb9a13 (diff) | |
hst/instance: define instance state
This is now part of the hst API. This change also improves identifier generation and serialisation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app.go')
| -rw-r--r-- | internal/app/app.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/app/app.go b/internal/app/app.go index 4d9d2efe..03608517 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -7,15 +7,14 @@ import ( "os" "hakurei.app/hst" - "hakurei.app/internal/app/state" "hakurei.app/message" ) // Main runs an app according to [hst.Config] and terminates. Main does not return. func Main(ctx context.Context, msg message.Msg, config *hst.Config) { - var id state.ID - if err := state.NewAppID(&id); err != nil { - log.Fatal(err) + var id hst.ID + if err := hst.NewInstanceID(&id); err != nil { + log.Fatal(err.Error()) } seal := outcome{syscallDispatcher: direct{msg}} |
