fix: remove unused saveRecords method to pass lint

This commit is contained in:
shaw
2026-03-14 19:01:27 +08:00
parent aa4e37d085
commit 39f8bd91b9

View File

@@ -662,12 +662,6 @@ func (s *BackupService) loadRecordsLocked(ctx context.Context) ([]BackupRecord,
return records, nil
}
func (s *BackupService) saveRecords(ctx context.Context, records []BackupRecord) error {
s.recordsMu.Lock()
defer s.recordsMu.Unlock()
return s.saveRecordsLocked(ctx, records)
}
// saveRecordsLocked 在已持有 recordsMu 锁的情况下保存记录
func (s *BackupService) saveRecordsLocked(ctx context.Context, records []BackupRecord) error {
data, err := json.Marshal(records)