forked from TrueCloudLab/frostfs-node
[#148] linter: Add containedctx linter
Context has to be passed as an argument: https://pkg.go.dev/context Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
2dc86058c3
commit
cc8ff015b4
22 changed files with 23 additions and 0 deletions
|
@ -297,6 +297,7 @@ func (a *applicationConfiguration) readConfig(c *config.Config) error {
|
|||
// the application life cycle.
|
||||
// It should not contain any read configuration values, component-specific
|
||||
// helpers and fields.
|
||||
// nolint: containedctx
|
||||
type internals struct {
|
||||
ctx context.Context
|
||||
ctxCancel func()
|
||||
|
|
|
@ -363,6 +363,7 @@ func (p *remoteLoadAnnounceWriterProvider) InitWriter(ctx context.Context) (load
|
|||
}, nil
|
||||
}
|
||||
|
||||
// nolint: containedctx
|
||||
type remoteLoadAnnounceWriter struct {
|
||||
ctx context.Context
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ import (
|
|||
)
|
||||
|
||||
// EpochContext is a std context extended with epoch data.
|
||||
// nolint: containedctx
|
||||
type EpochContext struct {
|
||||
context.Context
|
||||
E uint64
|
||||
|
|
|
@ -9,6 +9,7 @@ import (
|
|||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/reputation"
|
||||
)
|
||||
|
||||
// nolint: containedctx
|
||||
type commonPrm struct {
|
||||
cli coreclient.Client
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue