mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 07:57:13 +08:00
Use store.ProcessGetNode function
This commit is contained in:
@@ -70,7 +70,7 @@ func (c *cluster) ProcessSetCommand(origin string, id app.ProcessID, command str
|
|||||||
return c.applyCommand(cmd)
|
return c.applyCommand(cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
nodeid, err := c.manager.ProcessFindNodeID(id)
|
nodeid, err := c.store.ProcessGetNode(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("the process '%s' is not registered with any node: %w", id.String(), err)
|
return fmt.Errorf("the process '%s' is not registered with any node: %w", id.String(), err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user