all repos — erl @ b63d8d33dc0b786fdc9937770645d4c6e914a9dc

Execute Reload Loop

move timeout handling to state machine

Alan Pearce
commit

b63d8d33dc0b786fdc9937770645d4c6e914a9dc

parent

a18da5045554871e0aeb6fdd65eb62eb5e51d0df

1 file changed, 4 insertions(+), 1 deletion(-)

changed files
M main.gomain.go
@@ -169,6 +169,9 @@ logger = log.New(io.Discard, "", 0)
} cmd := command.New(program, args, copts) - sm := state.New(cmd, log.New(os.Stderr, "state: ", log.Lmsgprefix)) + sm := state.New(cmd, state.Options{ + Logger: log.New(os.Stderr, "state: ", log.Lmsgprefix), + Timeout: time.Second * 5, + }) Start(ctx, logger, watcher, sm) }