Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitec53459

Browse files
committed
lint
1 parent610740a commitec53459

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
iferr!=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
deferc.lock.Unlock()
190190

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp