File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -140,9 +140,7 @@ type cacheEntry struct {
140
140
141
141
type fetcher func (context.Context , uuid.UUID ) (CacheEntryValue , error )
142
142
143
- var (
144
- _ fs.FS = (* CloseFS )(nil )
145
- )
143
+ var _ fs.FS = (* CloseFS )(nil )
146
144
147
145
// CloseFS is a wrapper around fs.FS that implements io.Closer. The Close()
148
146
// method tells the cache to release the fileID. Once all open references are
@@ -162,7 +160,7 @@ func (f *CloseFS) Close() { f.close() }
162
160
// Safety: Every call to Acquire that does not return an error must have a
163
161
// matching call to Release.
164
162
func (c * Cache ) Acquire (ctx context.Context , fileID uuid.UUID ) (* CloseFS , error ) {
165
- // It's important that this `Load` call occurs outside of `prepare`, after the
163
+ // It's important that this `Load` call occurs outside `prepare`, after the
166
164
// mutex has been released, or we would continue to hold the lock until the
167
165
// entire file has been fetched, which may be slow, and would prevent other
168
166
// files from being fetched in parallel.
You can’t perform that action at this time.
0 commit comments