lint: go1.25 gopls updates

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2025-12-06 11:23:25 -08:00
parent c2027e194d
commit 2cd4157f66
2 changed files with 5 additions and 8 deletions

View File

@@ -50,13 +50,11 @@ func TestResolverCache_ConcurrentWaiters(t *testing.T) {
// Two goroutines that will wait
for range 2 {
wg.Add(1)
go func() {
defer wg.Done()
wg.Go(func() {
v, _, err := rc.Lock("shared")
results <- v
assert.NoError(t, err)
}()
})
}
select {

View File

@@ -67,9 +67,8 @@ func (d *DB) saveFrames(key string, frames []Frame) {
if d.db == nil {
return
}
d.wg.Add(1)
go func() {
defer d.wg.Done()
d.wg.Go(func() {
val, err := encodeFrames(frames)
if err != nil {
// Optionally log error
@@ -82,7 +81,7 @@ func (d *DB) saveFrames(key string, frames []Frame) {
}
return b.Put([]byte(key), val)
})
}()
})
}
func (d *DB) Get(ctx context.Context, dgst string) (Type, []Frame, error) {