From 5b380a7f2d5ae601df4e787cdb4f69d1b5323b90 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Tue, 20 Jan 2026 20:31:46 -0500 Subject: [PATCH] chore: AccountGRPCAPIKEY -> AccountGRPCAPIKey --- globals/config.go | 2 +- init.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/globals/config.go b/globals/config.go index ca3b029..a17ad9d 100644 --- a/globals/config.go +++ b/globals/config.go @@ -11,7 +11,7 @@ type config struct { SecureServerPort uint16 AccountGRPCHost string AccountGRPCPort uint16 - AccountGRPCAPIKEY string `envconf:"optional"` + AccountGRPCAPIKey string `envconf:"optional"` HealthCheckPort uint16 `envconf:"optional"` EnableBella bool `envconf:"optional"` } diff --git a/init.go b/init.go index a75cd9e..2f7f5d3 100644 --- a/init.go +++ b/init.go @@ -56,7 +56,7 @@ func init() { globals.Logger.Warning("Insecure gRPC server detected. PN_FRIENDS_CONFIG_GRPC_API_KEY environment variable not set") } - if strings.TrimSpace(globals.Config.AccountGRPCAPIKEY) == "" { + if strings.TrimSpace(globals.Config.AccountGRPCAPIKey) == "" { globals.Logger.Warning("Insecure gRPC server detected. PN_FRIENDS_CONFIG_ACCOUNT_GRPC_API_KEY environment variable not set") } @@ -68,7 +68,7 @@ func init() { globals.GRPCAccountClient = pb.NewAccountClient(globals.GRPCAccountClientConnection) globals.GRPCAccountCommonMetadata = metadata.Pairs( - "X-API-Key", globals.Config.AccountGRPCAPIKEY, + "X-API-Key", globals.Config.AccountGRPCAPIKey, ) database.ConnectPostgres()