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:
James Shubin
2023-08-30 20:37:44 -04:00
parent c199a51eeb
commit b62f501745

View File

@@ -258,7 +258,7 @@ func (obj *Engine) Commit() error {
// close the state and resource
// FIXME: will this mess up the sync and block the engine?
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