18 lines
293 B
Go
18 lines
293 B
Go
|
package consul
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/hashicorp/nomad/nomad/structs"
|
||
|
)
|
||
|
|
||
|
func NoopRestarter() WorkloadRestarter {
|
||
|
return noopRestarter{}
|
||
|
}
|
||
|
|
||
|
type noopRestarter struct{}
|
||
|
|
||
|
func (noopRestarter) Restart(ctx context.Context, event *structs.TaskEvent, failure bool) error {
|
||
|
return nil
|
||
|
}
|