implemented os file interface acstraction
This commit is contained in:
parent
23528fe28e
commit
ad41ddbe54
11 changed files with 223 additions and 92 deletions
|
|
@ -130,6 +130,8 @@ func (ph *PreloadHandler) preload(ctx context.Context) {
|
|||
p.cancel = cancel
|
||||
ph.mu.Unlock()
|
||||
go f.Preload(ctx, func() {
|
||||
file := f
|
||||
file.Close()
|
||||
ph.fin <- name
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue