Skip to content

Commit 168e57c

Browse files
committed
fix linter issues
1 parent 07da2be commit 168e57c

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

internal/conn/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package conn
22

33
import (
44
"context"
5-
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xcontext"
65
"sync"
76
"sync/atomic"
87
"time"
@@ -13,6 +12,7 @@ import (
1312
"github.com/ydb-platform/ydb-go-sdk/v3/internal/closer"
1413
"github.com/ydb-platform/ydb-go-sdk/v3/internal/endpoint"
1514
"github.com/ydb-platform/ydb-go-sdk/v3/internal/stack"
15+
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xcontext"
1616
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xerrors"
1717
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xsync"
1818
"github.com/ydb-platform/ydb-go-sdk/v3/trace"

internal/topic/topicreaderinternal/batcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (b *batcher) Pop(ctx context.Context, opts batcherGetOptions) (_ batcherMes
176176

177177
findRes = b.findNeedLock(opts)
178178
if findRes.Ok {
179-
b.applyNeedLock(findRes)
179+
b.applyNeedLock(&findRes)
180180

181181
return
182182
}
@@ -279,7 +279,7 @@ func (b *batcher) applyForceFlagToOptions(options batcherGetOptions) batcherGetO
279279
return res
280280
}
281281

282-
func (b *batcher) applyNeedLock(res batcherResultCandidate) {
282+
func (b *batcher) applyNeedLock(res *batcherResultCandidate) {
283283
if res.Rest.IsEmpty() && res.WaiterIndex >= 0 {
284284
delete(b.messages, res.Key)
285285
} else {

internal/topic/topicreaderinternal/batcher_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func TestBatcher_Apply(t *testing.T) {
407407
Key: session,
408408
Rest: batcherMessageOrderItems{newBatcherItemBatch(batch)},
409409
}
410-
b.applyNeedLock(foundRes)
410+
b.applyNeedLock(&foundRes)
411411

412412
expectedMap := batcherMessagesMap{session: batcherMessageOrderItems{newBatcherItemBatch(batch)}}
413413
require.Equal(t, expectedMap, b.messages)
@@ -426,7 +426,7 @@ func TestBatcher_Apply(t *testing.T) {
426426

427427
b.messages = batcherMessagesMap{session: batcherMessageOrderItems{newBatcherItemBatch(batch)}}
428428

429-
b.applyNeedLock(foundRes)
429+
b.applyNeedLock(&foundRes)
430430

431431
require.Empty(t, b.messages)
432432
})

table/options/models.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,6 @@ type IndexDescription struct {
4343
Type IndexType
4444
}
4545

46-
//nolint:unused
47-
func (i IndexDescription) toYDB() *Ydb_Table.TableIndexDescription {
48-
return &Ydb_Table.TableIndexDescription{
49-
Name: i.Name,
50-
IndexColumns: i.IndexColumns,
51-
Status: i.Status,
52-
}
53-
}
54-
5546
type Description struct {
5647
Name string
5748
Columns []Column

0 commit comments

Comments
 (0)