chore: fix all lint issue since golangci-lint bump (#21326)

This commit is contained in:
Julien Robert
2024-08-16 13:03:24 +00:00
committed by GitHub
parent 825e81b688
commit 6276b015bb
20 changed files with 37 additions and 28 deletions
+4
View File
@@ -22,6 +22,10 @@ Each entry must include the Github issue reference in the following format:
## [Unreleased]
## [v1.4.1](https://github.com/cosmos/cosmos-sdk/releases/tag/log/v1.4.1) - 2024-08-16
* [#21326](https://github.com/cosmos/cosmos-sdk/pull/21326) Avoid context key collision.
## [v1.4.0](https://github.com/cosmos/cosmos-sdk/releases/tag/log/v1.4.0) - 2024-08-07
* [#21045](https://github.com/cosmos/cosmos-sdk/pull/21045) Add `WithContext` method implementations to make all returned loggers compatible with `cosmossdk.io/core/log.Logger` (v1) without a direct dependency.
+3 -1
View File
@@ -30,7 +30,9 @@ func init() {
const ModuleKey = "module"
// ContextKey is used to store the logger in the context.
var ContextKey struct{}
var ContextKey contextKey
type contextKey struct{}
// Logger is the Cosmos SDK logger interface.
// It extends cosmossdk.io/core/log.Logger to return a child logger.