mirror of
https://github.com/restic/restic.git
synced 2025-08-14 04:27:42 +00:00
fix compatibility with go 1.19
This commit is contained in:
@@ -296,8 +296,8 @@ func (be *damageOnceBackend) Load(ctx context.Context, h backend.Handle, length
|
||||
}
|
||||
|
||||
h.IsMetadata = false
|
||||
_, retry := be.m.Swap(h, true)
|
||||
if !retry {
|
||||
_, isRetry := be.m.LoadOrStore(h, true)
|
||||
if !isRetry {
|
||||
// return broken data on the first try
|
||||
offset++
|
||||
}
|
||||
|
Reference in New Issue
Block a user