Refactor reputation service #212

Merged
fyrchik merged 3 commits from dstepanov-yadro/frostfs-node:refactoring/object-3610-reputation into master 2023-04-07 15:35:58 +00:00

Resolve linters.
Rename context structs and interfaces to be understandable.

Resolve linters. Rename *context* structs and interfaces to be understandable.
dstepanov-yadro force-pushed refactoring/object-3610-reputation from c0b73dda74 to 65a07878a2 2023-04-05 08:51:19 +00:00 Compare
dstepanov-yadro changed title from WIP: Refactor reputation service to Refactor reputation service 2023-04-05 08:57:41 +00:00
dstepanov-yadro requested review from storage-core-committers 2023-04-05 08:57:46 +00:00
dstepanov-yadro requested review from storage-core-developers 2023-04-05 08:57:46 +00:00
aarifullin approved these changes 2023-04-05 14:06:35 +00:00
aarifullin left a comment
Member

LGTM

LGTM
fyrchik reviewed 2023-04-05 15:02:49 +00:00
@ -11,3 +10,1 @@
// nolint: containedctx
type EpochContext struct {
context.Context
// EpochProvider ...
Owner

EpochProvider is a constant/dummy epoch source?

`EpochProvider is a constant/dummy epoch source`?
Author
Member

yes

yes
Owner

I mean what is ... comment for?

I mean what is `...` comment for?
Author
Member

Lazy developer detected: it's me.
Followed this rule:

All top-level, exported names should have doc comments

(from https://github.com/golang/go/wiki/CodeReviewComments#doc-comments)

As I see it, we do not have such a rule. Deleted the comment.

Lazy developer detected: it's me. Followed this rule: > All top-level, exported names should have doc comments (from https://github.com/golang/go/wiki/CodeReviewComments#doc-comments) As I see it, we do not have such a rule. Deleted the comment.
fyrchik marked this conversation as resolved
@ -15,3 +13,3 @@
}
func (ctx *EpochContext) Epoch() uint64 {
func (ctx *EpochProvider) Epoch() uint64 {
Owner

It's no longer ctx, I guess?

It's no longer `ctx`, I guess?
Author
Member

fixed

fixed
fyrchik marked this conversation as resolved
dstepanov-yadro force-pushed refactoring/object-3610-reputation from 65a07878a2 to 1bc3d79ddd 2023-04-06 06:16:06 +00:00 Compare
dstepanov-yadro force-pushed refactoring/object-3610-reputation from 1bc3d79ddd to fc4f4b7533 2023-04-06 08:41:32 +00:00 Compare
fyrchik approved these changes 2023-04-07 15:35:52 +00:00
fyrchik merged commit c236b54a65 into master 2023-04-07 15:35:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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-node#212
No description provided.