mv TimeOut -> Timeout
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user