aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/seal.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-20 00:07:48 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-20 00:22:18 +0900
commitad0034b09aaa76aca478304518c1394ba292a619 (patch)
tree07fc40ae14d9eecb368997688c0de1eb1e89cb15 /internal/app/seal.go
parent1da845d78bdd6be03e771958100d388b3e6e9fcc (diff)
app: move app ID to app struct
App ID is inherent to App, and it makes no sense to generate it as part of the app sealing process. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/seal.go')
-rw-r--r--internal/app/seal.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/internal/app/seal.go b/internal/app/seal.go
index 9fd6dfb8..d296aa91 100644
--- a/internal/app/seal.go
+++ b/internal/app/seal.go
@@ -53,18 +53,11 @@ func (a *app) Seal(config *Config) error {
// create seal
seal := new(appSeal)
- // generate application ID
- if id, err := newAppID(); err != nil {
- return fmsg.WrapErrorSuffix(err,
- "cannot generate application ID:")
- } else {
- seal.id = id
- }
-
// fetch system constants
seal.SystemConstants = internal.GetSC()
// pass through config values
+ seal.id = a.id.String()
seal.fid = config.ID
seal.command = config.Command