chore: fix all lint issue since golangci-lint bump (#21326)
This commit is contained in:
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user