engine: graph: Fix typo
We actually now cleanup instead of closing. It's semantically slightly different, so be consistent with the error message.
This commit is contained in:
@@ -258,7 +258,7 @@ func (obj *Engine) Commit() error {
|
|||||||
// close the state and resource
|
// close the state and resource
|
||||||
// FIXME: will this mess up the sync and block the engine?
|
// FIXME: will this mess up the sync and block the engine?
|
||||||
if err := obj.state[vertex].Cleanup(); err != nil {
|
if err := obj.state[vertex].Cleanup(); err != nil {
|
||||||
return errwrap.Wrapf(err, "the Res did not Close")
|
return errwrap.Wrapf(err, "the Res did not Cleanup")
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete to free up memory from old graphs
|
// delete to free up memory from old graphs
|
||||||
|
|||||||
Reference in New Issue
Block a user