From 7b670947c3ac7a47a29a3e3042c5576eee764b03 Mon Sep 17 00:00:00 2001 From: Alexander Lazarenko Date: Sun, 13 Jul 2025 23:19:41 +0300 Subject: [PATCH] Add GetCurrentSnapshotID method to retrieve the current snapshot ID --- api.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api.go b/api.go index d09b744..0531224 100644 --- a/api.go +++ b/api.go @@ -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 +}