Skip to content

Commit b1ebd2d

Browse files
committed
removed unnessesarry linters from config. removed KeepInCache
1 parent 5bfbb85 commit b1ebd2d

File tree

6 files changed

+6
-13
lines changed

6 files changed

+6
-13
lines changed

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ linters:
127127
disable-all: true
128128
enable:
129129
# - cyclop
130-
- deadcode
131130
- depguard
132131
- dogsled
133132
# - dupl
@@ -173,7 +172,6 @@ linters:
173172
- revive
174173
- staticcheck
175174
- stylecheck
176-
- structcheck
177175
# - tagliatelle
178176
# - testpackage
179177
# - thelper
@@ -183,7 +181,6 @@ linters:
183181
- unparam
184182
- unused
185183
# - varnamelen
186-
- varcheck
187184
- whitespace
188185
# - wrapcheck
189186
# - wsl

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
* Added retry policy options for topics: `topic/topicoptions.WithReaderCheckRetryErrorFunction`, `topic/topicoptions.WithReaderStartTimeout`, `topic/topicoptions.WithWriterCheckRetryErrorFunction`, `topic/topicoptions.WithWriterStartTimeout`
2-
* Refactored `internal/conn` middlewares for `DRY`
2+
* Refactored `internal/conn` middlewares
33
* Added `trace.tableSessionInfo.LastUsage()` method for get last usage timestamp
4-
* Fixed mutable behaviour of `tx.WithCommit()`
4+
* Reverted `tx.WithCommit()` changes for fix unstable behaviour of lazy transactions
5+
* Added `options.WithCommit()` option for execute query with auto-commit flag
6+
* Removed `trace.TableTransactionExecuteStartInfo.KeepInCache` field as redundant
57

68
## v3.41.0
79
* Added option for set interval of auth token update in topic streams

internal/cmd/gtrace/writer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,6 @@ func (f flags) has(x flags) bool {
782782
}
783783

784784
const (
785-
//nolint
786785
zeroFlags flags = 1 << iota >> 1
787786
docs
788787
)

internal/table/transaction.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ func (tx *transaction) Execute(
4747
query string, params *table.QueryParameters,
4848
opts ...options.ExecuteDataQueryOption,
4949
) (r result.Result, err error) {
50-
onDone := trace.TableOnSessionTransactionExecute(
51-
tx.s.config.Trace(), &ctx, tx.s, tx, queryFromText(query), params, false,
52-
)
50+
onDone := trace.TableOnSessionTransactionExecute(tx.s.config.Trace(), &ctx, tx.s, tx, queryFromText(query), params)
5351
defer func() {
5452
onDone(r, err)
5553
}()

trace/table.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ type (
179179
Tx tableTransactionInfo
180180
Query tableDataQuery
181181
Parameters tableQueryParameters
182-
// Deprecated: has no effect (always false). See KeepInCache flag in underlying Execute query trace
183-
KeepInCache bool
184182
}
185183
TableTransactionExecuteStatementStartInfo struct {
186184
// Context make available context in trace callback function.

trace/table_gtrace.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)