chore: change constant name to camelcase

This commit is contained in:
Juan Pablo Villafáñez
2025-09-08 17:32:36 +02:00
committed by Jörn Friedrich Dreyer
parent 8b5b3fb430
commit c0b4a5daa0
21 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
// NewStream prepares the requested nats stream and returns it.
func NewStream(cfg *config.Config) (events.Stream, error) {
connName := generators.GenerateConnectionName(cfg.Service.Name, generators.NTYPE_BUS)
connName := generators.GenerateConnectionName(cfg.Service.Name, generators.NTypeBus)
return stream.NatsFromConfig(connName, false, stream.NatsConfig{
Endpoint: cfg.Events.Addr,
Cluster: cfg.Events.ClusterID,
@@ -58,7 +58,7 @@ func StorageUsersConfigFromStruct(cfg *config.Config) map[string]interface{} {
"tls-insecure": cfg.Events.TLSInsecure,
"tls-root-ca-cert": cfg.Events.TLSRootCaCertPath,
"enable-tls": cfg.Events.EnableTLS,
"name": generators.GenerateConnectionName(cfg.Service.Name, generators.NTYPE_BUS),
"name": generators.GenerateConnectionName(cfg.Service.Name, generators.NTypeBus),
"username": cfg.Events.AuthUsername,
"password": cfg.Events.AuthPassword,
},