mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-05 16:06:55 +08:00
update
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user