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()