Skip to content

Commit

Permalink
Change envconfig.Usage prefix to 'nsm'
Browse files Browse the repository at this point in the history
Signed-off-by: Arpad Kiss <arpad.a.kiss@est.tech>
  • Loading branch information
arp-est committed Apr 18, 2024
1 parent 067b68a commit 4211f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type Config struct {
ProxyRegistryURL url.URL `desc:"url to the proxy registry that handles this domain" split_words:"true"`
ExpirePeriod time.Duration `default:"1s" desc:"period to check expired NSEs" split_words:"true"`
LogLevel string `default:"INFO" desc:"Log level" split_words:"true"`
OpenTelemetryEndpoint string `default:"otel-collector.observability.svc.cluster.local:4317" desc:"OpenTelemetry Collector Endpoint"`
OpenTelemetryEndpoint string `default:"otel-collector.observability.svc.cluster.local:4317" desc:"OpenTelemetry Collector Endpoint" split_words:"true"`
MetricsExportInterval time.Duration `default:"10s" desc:"interval between mertics exports" split_words:"true"`
}

Expand Down Expand Up @@ -92,10 +92,10 @@ func main() {

// Get config from environment
config := &Config{}
if err := envconfig.Usage("registry_memory", config); err != nil {
if err := envconfig.Usage("nsm", config); err != nil {
logrus.Fatal(err)
}
if err := envconfig.Process("registry_memory", config); err != nil {
if err := envconfig.Process("nsm", config); err != nil {
logrus.Fatalf("error processing config from env: %+v", err)
}

Expand Down

0 comments on commit 4211f0c

Please sign in to comment.