diff --git a/api.go b/api.go index 9299bdb..ff3f412 100644 --- a/api.go +++ b/api.go @@ -295,11 +295,13 @@ func (a *Agate) saveCurrentSnapshotID() error { return os.WriteFile(a.currentIDFile, []byte(a.currentSnapshotID), 0644) } +func (a *Agate) Open() error { + return a.options.OpenFunc(a.GetActiveDir()) +} + // Close releases all resources used by the Agate instance. func (a *Agate) Close() error { - // Currently, we don't have a way to close the manager directly - // This would be a good addition in the future - return nil + return a.options.CloseFunc() } // StartServer starts a gRPC server to share snapshots.