Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec53459

Browse files
committed
lint
1 parent 610740a commit ec53459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/files/cache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (c *Cache) Acquire(ctx context.Context, db database.Store, fileID uuid.UUID
146146
// mutex has been released, or we would continue to hold the lock until the
147147
// entire file has been fetched, which may be slow, and would prevent other
148148
// files from being fetched in parallel.
149-
e := c.prepare(ctx, db, fileID)
149+
e := c.prepare(db, fileID)
150150
ev, err := e.value.Load()
151151
if err != nil {
152152
c.purge(fileID)
@@ -184,7 +184,7 @@ func (c *Cache) Acquire(ctx context.Context, db database.Store, fileID uuid.UUID
184184
}, nil
185185
}
186186

187-
func (c *Cache) prepare(ctx context.Context, db database.Store, fileID uuid.UUID) *cacheEntry {
187+
func (c *Cache) prepare(db database.Store, fileID uuid.UUID) *cacheEntry {
188188
c.lock.Lock()
189189
defer c.lock.Unlock()
190190

0 commit comments

Comments
 (0)