Skip to content

Commit

Permalink
Fix a rebase mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
t-persson committed Jan 30, 2025
1 parent acb729c commit ce25c02
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions internal/config/executionspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (

type ExecutionSpaceConfig interface {
Config
StripPrefix() string
Hostname() string
Timeout() time.Duration
ExecutionSpaceWaitTimeout() time.Duration
Expand All @@ -37,7 +36,6 @@ type ExecutionSpaceConfig interface {
// executionSpaceCfg implements the ExecutionSpaceConfig interface.
type executionSpaceCfg struct {
Config
stripPrefix string
hostname string
timeout time.Duration
executionSpaceWaitTimeout time.Duration
Expand All @@ -60,7 +58,6 @@ func NewExecutionSpaceConfig() ExecutionSpaceConfig {
logrus.Panic(err)
}

flag.StringVar(&conf.stripPrefix, "stripprefix", EnvOrDefault("STRIP_PREFIX", ""), "Strip prefix")
flag.StringVar(&conf.hostname, "hostname", EnvOrDefault("PROVIDER_HOSTNAME", "http://localhost"), "Host to supply to ESR for starting executors")
flag.DurationVar(&conf.timeout, "timeout", defaultTimeout, "Maximum timeout for requests to Execution space provider Service.")
flag.DurationVar(&conf.executionSpaceWaitTimeout, "executionSpaceWaitTimeout", executionSpaceWaitTimeout, "Timeout duration to wait when trying to checkout execution space(s)")
Expand All @@ -74,11 +71,6 @@ func NewExecutionSpaceConfig() ExecutionSpaceConfig {
return &conf
}

// StripPrefix returns a prefix that is supposed to be stripped from URL.
func (c *executionSpaceCfg) StripPrefix() string {
return c.stripPrefix
}

// Hostname returns the hostname to use for executors.
func (c *executionSpaceCfg) Hostname() string {
return c.hostname
Expand Down

0 comments on commit ce25c02

Please sign in to comment.