mirror of
https://github.com/PretendoNetwork/friends.git
synced 2026-09-11 12:58:38 -05:00
chore: AccountGRPCAPIKEY -> AccountGRPCAPIKey
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
4
init.go
4
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()
|
||||
|
||||
Reference in New Issue
Block a user