Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go/pkg/api/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ func (p *ProcessProvider) registerProcessEvents() {
p.actions.Do(func() {
coreApp.RegisterAction(func(_ *core.Core, msg core.Message) core.Result {
p.forwardProcessEvent(msg)
return core.Result{OK: true}
return core.Ok(nil)
})
})
}
Expand Down
14 changes: 7 additions & 7 deletions go/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (s *Service) OnStartup(context.Context) core.Result {
c.RegisterAction(s.handleTask)
}
})
return core.Result{OK: true}
return core.Ok(nil)
}

// OnShutdown implements core.Stoppable.
Expand Down Expand Up @@ -822,12 +822,12 @@ func (s *Service) handleTask(c *core.Core, task core.Message) core.Result {
}
proc := result.Value.(*Process)
return core.Ok(proc.Info())
case TaskProcessRun:
result := s.RunWithOptions(c.Context(), RunOptions(m))
if !result.OK {
return result
}
return core.Ok(result.Value)
case TaskProcessRun:
result := s.RunWithOptions(c.Context(), RunOptions(m))
if !result.OK {
return result
}
return core.Ok(result.Value)
case TaskProcessKill:
switch {
case m.ID != "":
Expand Down
Loading