Commit 39f8bd91 authored by shaw's avatar shaw
Browse files

fix: remove unused saveRecords method to pass lint

parent aa4e37d0
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment