Investigate unused linter warnings #373

Open
opened 2024-04-18 08:36:06 +00:00 by fyrchik · 0 comments

It has field-writes-are-uses setting, which has a good default value (true), but misses some forgotten fields, see TrueCloudLab/frostfs-node#1100 for the full description.

metrics/billing.go:85:3                         unused  field `user` is unused
pkg/service/tree/tree_client_in_memory.go:67:2  unused  field `bkt` is unused
api/notifications/controller.go:39:3            unused  field `taskQueueConnection` is unused
cmd/s3-gw/app.go:84:3                           unused  field `wrkDone` is unused
cmd/s3-gw/service.go:16:2                       unused  field `serviceType` is unused
It has `field-writes-are-uses` setting, which has a good default value (`true`), but misses some forgotten fields, see https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/1100 for the full description. ``` metrics/billing.go:85:3 unused field `user` is unused pkg/service/tree/tree_client_in_memory.go:67:2 unused field `bkt` is unused api/notifications/controller.go:39:3 unused field `taskQueueConnection` is unused cmd/s3-gw/app.go:84:3 unused field `wrkDone` is unused cmd/s3-gw/service.go:16:2 unused field `serviceType` is unused ```
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#373
There is no content yet.