mirror of
https://github.com/restic/restic.git
synced 2025-10-10 07:21:53 +00:00
repository: cleanup
This commit is contained in:
@@ -243,13 +243,10 @@ func (mi *MasterIndex) Each(ctx context.Context) <-chan restic.PackedBlob {
|
||||
|
||||
go func() {
|
||||
defer mi.idxMutex.RUnlock()
|
||||
defer func() {
|
||||
close(ch)
|
||||
}()
|
||||
defer close(ch)
|
||||
|
||||
for _, idx := range mi.idx {
|
||||
idxCh := idx.Each(ctx)
|
||||
for pb := range idxCh {
|
||||
for pb := range idx.Each(ctx) {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
|
Reference in New Issue
Block a user