This commit is contained in:
sujit
2025-10-01 19:46:14 +05:45
parent 7a99a74094
commit 331c9aa81a
26 changed files with 1340 additions and 826 deletions

View File

@@ -408,7 +408,7 @@ func (sm *SnapshotManager) DeleteSnapshot(queueName string, timestamp time.Time)
}
// GetSnapshotStats returns statistics about snapshots
func (sm *SnapshotManager) GetSnapshotStats() map[string]interface{} {
func (sm *SnapshotManager) GetSnapshotStats() map[string]any {
totalSnapshots := 0
var totalSize int64
@@ -425,7 +425,7 @@ func (sm *SnapshotManager) GetSnapshotStats() map[string]interface{} {
return nil
})
return map[string]interface{}{
return map[string]any{
"total_snapshots": totalSnapshots,
"total_size_bytes": totalSize,
"retention_period": sm.retentionPeriod,