Remove engine.Status and replace it with standard go error
Signed-off-by: Antonio Murdaca <me@runcom.ninja> Upstream-commit: c79b9bab541673af121d829ebc3b29ff1b01efa2 Component: engine
This commit is contained in:
@ -90,7 +90,7 @@ func serveFd(addr string, job *engine.Job) error {
|
||||
}
|
||||
|
||||
// Called through eng.Job("acceptconnections")
|
||||
func AcceptConnections(job *engine.Job) engine.Status {
|
||||
func AcceptConnections(job *engine.Job) error {
|
||||
// Tell the init daemon we are accepting requests
|
||||
go systemd.SdNotify("READY=1")
|
||||
|
||||
@ -99,5 +99,5 @@ func AcceptConnections(job *engine.Job) engine.Status {
|
||||
close(activationLock)
|
||||
}
|
||||
|
||||
return engine.StatusOK
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user