diff options
Diffstat (limited to 'routers/init.go')
-rw-r--r-- | routers/init.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/init.go b/routers/init.go index 015b61a08e..c1cfe26bc4 100644 --- a/routers/init.go +++ b/routers/init.go @@ -72,7 +72,7 @@ func mustInitCtx(ctx context.Context, fn func(ctx context.Context) error) { func syncAppConfForGit(ctx context.Context) error { runtimeState := new(system.RuntimeState) - if err := system.AppState.Get(runtimeState); err != nil { + if err := system.AppState.Get(ctx, runtimeState); err != nil { return err } @@ -95,7 +95,7 @@ func syncAppConfForGit(ctx context.Context) error { log.Info("re-write ssh public keys ...") mustInitCtx(ctx, asymkey_model.RewriteAllPublicKeys) - return system.AppState.Set(runtimeState) + return system.AppState.Set(ctx, runtimeState) } return nil } |