Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
39f8bd91
Commit
39f8bd91
authored
Mar 14, 2026
by
shaw
Browse files
fix: remove unused saveRecords method to pass lint
parent
aa4e37d0
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/internal/service/backup_service.go
View file @
39f8bd91
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment