diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-25 15:59:52 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-25 15:59:52 -0600 |
| commit | 8d7ddeec8ea078d000aa46b8f7f69ec95498a548 (patch) | |
| tree | eb800995efa4b3a1b45f34bbe88961a4e8e7926d | |
| parent | 0425d4c4541b88c8df0230b017173e536e9d2890 (diff) | |
fix: do not close the client after exiting from init()
| -rw-r--r-- | .runway/env-production.yml | 2 | ||||
| -rw-r--r-- | .runway/env-staging.yml | 2 | ||||
| -rw-r--r-- | app/init.go | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/.runway/env-production.yml b/.runway/env-production.yml index a511122..2f1f50c 100644 --- a/.runway/env-production.yml +++ b/.runway/env-production.yml @@ -3,5 +3,5 @@ AUTHZD_HOST: "authzd.staging.runway.gitlab.net:443" LOG_LEVEL: "warn" OAUTH_CLIENT_ID: "75656280b7ca60223b060b57c4eb98a8a324878531efeccafc1d25709dbee5c9" OIDC_ISSUER: "https://gitlab.com" -ZED_ENDPOINT: ":50051" +ZED_ENDPOINT: "localhost:50051" ZED_TOKEN: "secret" diff --git a/.runway/env-staging.yml b/.runway/env-staging.yml index 7d34db1..b513762 100644 --- a/.runway/env-staging.yml +++ b/.runway/env-staging.yml @@ -3,5 +3,5 @@ AUTHZD_HOST: "authzd.staging.runway.gitlab.net:443" LOG_LEVEL: "info" OAUTH_CLIENT_ID: "786e37c8d2207d200f735379ad52579c452948222f9affc7a45e74bd7074ad3c" OIDC_ISSUER: "https://staging.gitlab.com" -ZED_ENDPOINT: ":50051" +ZED_ENDPOINT: "localhost:50051" ZED_TOKEN: "secret" diff --git a/app/init.go b/app/init.go index f882414..ea67e48 100644 --- a/app/init.go +++ b/app/init.go @@ -84,7 +84,6 @@ func init() { logger := ioc.MustResolve[*zerolog.Logger](c) ctx := logger.WithContext(context.Background()) client := ioc.MustResolve[*authzed.Client](c) - defer client.Close() ioc. MustResolve[*event.TypedAggregator[*domain.Sparkle]](c). |
