chore: AccountGRPCAPIKEY -> AccountGRPCAPIKey

This commit is contained in:
Jonathan Barrow
2026-01-20 20:31:46 -05:00
parent f22ec1bfe0
commit 5b380a7f2d
2 changed files with 3 additions and 3 deletions

View File

@@ -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"`
}

View File

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