We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent610740a commitec53459Copy full SHA for ec53459
coderd/files/cache.go
@@ -146,7 +146,7 @@ func (c *Cache) Acquire(ctx context.Context, db database.Store, fileID uuid.UUID
146
// mutex has been released, or we would continue to hold the lock until the
147
// entire file has been fetched, which may be slow, and would prevent other
148
// files from being fetched in parallel.
149
-e:=c.prepare(ctx,db,fileID)
+e:=c.prepare(db,fileID)
150
ev,err:=e.value.Load()
151
iferr!=nil {
152
c.purge(fileID)
@@ -184,7 +184,7 @@ func (c *Cache) Acquire(ctx context.Context, db database.Store, fileID uuid.UUID
184
},nil
185
}
186
187
-func (c*Cache)prepare(ctx context.Context,db database.Store,fileID uuid.UUID)*cacheEntry {
+func (c*Cache)prepare(db database.Store,fileID uuid.UUID)*cacheEntry {
188
c.lock.Lock()
189
deferc.lock.Unlock()
190