Add GetCurrentSnapshotID method to retrieve the current snapshot ID

This commit is contained in:
2025-07-13 23:19:41 +03:00
parent aaf227f25a
commit 7b670947c3

4
api.go
View File

@ -429,3 +429,7 @@ func (a *Agate) GetRemoteSnapshot(ctx context.Context, address string, snapshotI
a.options.Logger.Printf("Successfully imported remote snapshot %s", snapshotID)
return nil
}
func (a *Agate) GetCurrentSnapshotID() string {
return a.currentSnapshotID
}