This commit is contained in:
parent
f75188b412
commit
abcd073643
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,9 @@ func (r *Resolver) nestedFs(ctx context.Context, fsPath string, file File) (File
|
||||||
return nil, fmt.Errorf("error calculating file hash: %w", err)
|
return nil, fmt.Errorf("error calculating file hash: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r.m.Lock()
|
||||||
|
defer r.m.Unlock()
|
||||||
|
|
||||||
if nestedFs, ok := r.fsmap[fileHash]; ok {
|
if nestedFs, ok := r.fsmap[fileHash]; ok {
|
||||||
return nestedFs, file.Close(ctx)
|
return nestedFs, file.Close(ctx)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue