mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Always create a consul.Syncer. Use a default Consul Config if necessary.
This commit is contained in:
@@ -205,7 +205,14 @@ type UniversalExecutor struct {
|
||||
|
||||
// NewExecutor returns an Executor
|
||||
func NewExecutor(logger *log.Logger) Executor {
|
||||
shutdownCh := make(chan struct{})
|
||||
cs, err := consul.NewSyncer(nil, shutdownCh, logger)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
exec := &UniversalExecutor{
|
||||
consulSyncer: cs,
|
||||
logger: logger,
|
||||
processExited: make(chan interface{}),
|
||||
shutdownCh: make(chan struct{}),
|
||||
|
||||
Reference in New Issue
Block a user