Skip to content

Commit 9a21fee

Browse files
committed
fmt
1 parent 9317020 commit 9a21fee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

coderd/files/cache.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ type cacheEntry struct {
140140

141141
type fetcher func(context.Context, uuid.UUID) (CacheEntryValue, error)
142142

143-
var (
144-
_ fs.FS = (*CloseFS)(nil)
145-
)
143+
var _ fs.FS = (*CloseFS)(nil)
146144

147145
// CloseFS is a wrapper around fs.FS that implements io.Closer. The Close()
148146
// method tells the cache to release the fileID. Once all open references are
@@ -162,7 +160,7 @@ func (f *CloseFS) Close() { f.close() }
162160
// Safety: Every call to Acquire that does not return an error must have a
163161
// matching call to Release.
164162
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
166164
// mutex has been released, or we would continue to hold the lock until the
167165
// entire file has been fetched, which may be slow, and would prevent other
168166
// files from being fetched in parallel.

0 commit comments

Comments
 (0)