-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabled structcheck linter #1219
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,6 @@ import ( | |
) | ||
|
||
type testItem struct { | ||
v uint32 | ||
|
||
onClose func() error | ||
onIsAlive func() bool | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,6 @@ type PublicMessage struct { | |
// partitioning at level message available by protocol, but doesn't available by current server implementation | ||
// the field hidden from public access for prevent runtime errors. | ||
// it will be published after implementation on server side. | ||
futurePartitioning PublicFuturePartitioning | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line was removed because the structcheck linter wrote |
||
} | ||
|
||
// PublicFuturePartitioning will be published in feature, after server implementation completed. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ import ( | |
"github.com/jonboulle/clockwork" | ||
|
||
"github.com/ydb-platform/ydb-go-sdk/v3/credentials" | ||
"github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawtopic/rawtopiccommon" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn’t remove this, but when I added it back, the development environment began to issue “unused import”. |
||
"github.com/ydb-platform/ydb-go-sdk/v3/internal/grpcwrapper/rawtopic/rawtopicwriter" | ||
"github.com/ydb-platform/ydb-go-sdk/v3/trace" | ||
) | ||
|
@@ -22,5 +21,4 @@ type WritersCommonConfig struct { | |
cred credentials.Credentials | ||
credUpdateInterval time.Duration | ||
clock clockwork.Clock | ||
forceCodec rawtopiccommon.Codec | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line was removed because the structcheck linter wrote |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line was removed because the structcheck linter wrote
internal/pool/pool_test.go:22:2: "v" is unused (structcheck) v uint32