Refactor morph #219

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:refactoring/object-3060-morph into master 2023-07-26 21:07:57 +00:00

Resolve linters

Resolve linters
dstepanov-yadro force-pushed refactoring/object-3060-morph from 4b994e64bc to a45503387d 2023-04-05 15:32:35 +00:00 Compare
dstepanov-yadro requested review from storage-core-committers 2023-04-06 06:06:08 +00:00
dstepanov-yadro requested review from storage-core-developers 2023-04-06 06:06:08 +00:00
dstepanov-yadro changed title from WIP: Refactor morph to Refactor morph 2023-04-06 06:06:13 +00:00
dstepanov-yadro force-pushed refactoring/object-3060-morph from a45503387d to e54d565049 2023-04-06 15:01:22 +00:00 Compare
aarifullin reviewed 2023-04-07 11:58:20 +00:00
@ -500,3 +529,3 @@
until, err = c.notaryTxValidationLimit()
if err != nil {
return err
return 0, err
Member

[Optional]

Could this be simplified?

func (c *Client) getUntilValue(vub *uint32) (until uint32, err error) {
    if vub != nil {
       until = *vub
 	   return
    }
    until, err = c.notaryTxValidationLimit()
    return
}

or

func (c *Client) getUntilValue(vub *uint32) (uint32, error) {
    if vub != nil {
       return *vub, nil
    }
    return c.notaryTxValidationLimit()
}
[Optional] Could this be simplified? ``` func (c *Client) getUntilValue(vub *uint32) (until uint32, err error) { if vub != nil { until = *vub return } until, err = c.notaryTxValidationLimit() return } ``` or ``` func (c *Client) getUntilValue(vub *uint32) (uint32, error) { if vub != nil { return *vub, nil } return c.notaryTxValidationLimit() } ```
Author
Member

Done.

Done.
dstepanov-yadro force-pushed refactoring/object-3060-morph from e54d565049 to fe87735073 2023-04-07 12:43:41 +00:00 Compare
aarifullin approved these changes 2023-04-07 13:09:34 +00:00
aarifullin left a comment
Member

LGTM

LGTM
fyrchik approved these changes 2023-04-07 13:50:28 +00:00
@ -249,3 +246,1 @@
l.log.Warn("listener worker pool drained",
zap.Int("capacity", l.pool.Cap()))
}
l.handleNotifyEvent(notifyEvent)
Owner

What about submiting here and processing error outside the switch?

What about submiting here and processing error outside the switch?
Author
Member

Then funlen and gocognit linters will not pass:)

Then funlen and gocognit linters will not pass:)
fyrchik marked this conversation as resolved
acid-ant approved these changes 2023-04-07 13:59:07 +00:00
fyrchik merged commit fe87735073 into master 2023-04-07 14:27:43 +00:00
fyrchik referenced this pull request from a commit 2023-04-07 14:27:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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#219
No description provided.