Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
blade committed Apr 19, 2024
1 parent 9e108b7 commit ed1337c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cmd/gateway_server/internal/config/dot_env_config_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ func (c DotEnvGlobalConfigProvider) GetAltruistRequestTimeout() time.Duration {
return c.altruistRequestTimeout
}

// ShouldEmitServiceUrl returns whether to emit service url tags as part of relay metrics.
func (c DotEnvGlobalConfigProvider) ShouldEmitServiceUrlPromMetrics() bool {
return c.emitServiceUrlPromMetrics
}

// NewDotEnvConfigProvider creates a new instance of DotEnvGlobalConfigProvider.
func NewDotEnvConfigProvider() *DotEnvGlobalConfigProvider {
_ = godotenv.Load()
Expand Down
2 changes: 1 addition & 1 deletion internal/global_config/config_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type GlobalConfigProvider interface {
}

type PromMetricsProvider interface {
ShouldEmitServiceUrl() bool
ShouldEmitServiceUrlPromMetrics() bool
}

type SecretProvider interface {
Expand Down

0 comments on commit ed1337c

Please sign in to comment.