Investigate unused linter warnings #373

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

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 ```
alexvanin added the
good first issue
label 2024-09-30 10:55:24 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
No description provided.