From dd94818f20c7a37bdd7c6129551759db1b09b65e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 23 Oct 2025 22:51:10 +0900 Subject: 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 --- internal/app/app.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'internal/app/app.go') 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}} -- cgit v1.3.1