diff --git a/actions/actions.go b/actions/actions.go index 3ad78a9..248d3fb 100644 --- a/actions/actions.go +++ b/actions/actions.go @@ -63,7 +63,7 @@ func NewSingleAction(config internal.ActionConfig, c chan bool) (Action, error) return NewPrint(config, c) } - if config.Type == "TimeOut" { + if config.Type == "Timeout" { return NewTimeOut(config, c) } diff --git a/actions/timeout.go b/actions/timeout.go index 6d7dc85..fb82f27 100644 --- a/actions/timeout.go +++ b/actions/timeout.go @@ -36,7 +36,7 @@ func NewTimeOut(config internal.ActionConfig, c chan bool) (Action, error) { } func (p TimeOut) GetName() string { - return "TimeOut" + return "Timeout" } func (p TimeOut) GetDescription() string { diff --git a/triggers/timeout.go b/triggers/timeout.go index 5e4e171..0f03b0c 100644 --- a/triggers/timeout.go +++ b/triggers/timeout.go @@ -41,7 +41,7 @@ func NewTimeOut(config internal.KillSwitchConfig) (TimeOut, error) { } func (p TimeOut) GetName() string { - return "TimeOut" + return "Timeout" } func (p TimeOut) GetDescription() string { diff --git a/triggers/triggers.go b/triggers/triggers.go index fbdc779..f5f1705 100644 --- a/triggers/triggers.go +++ b/triggers/triggers.go @@ -11,7 +11,7 @@ type Trigger interface { } func NewTrigger(config internal.KillSwitchConfig) (Trigger, error) { - if config.Type == "TimeOut" { + if config.Type == "Timeout" { return NewTimeOut(config) }