forked from TrueCloudLab/frostfs-node
[#772] node: Apply gofumpt
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
00aa6d9749
commit
79088baa06
136 changed files with 293 additions and 239 deletions
|
@ -55,9 +55,7 @@ const (
|
|||
defaultWaitInterval = 500 * time.Millisecond
|
||||
)
|
||||
|
||||
var (
|
||||
ErrNoHealthyEndpoint = errors.New("no healthy endpoint")
|
||||
)
|
||||
var ErrNoHealthyEndpoint = errors.New("no healthy endpoint")
|
||||
|
||||
func defaultConfig() *cfg {
|
||||
return &cfg{
|
||||
|
|
|
@ -42,9 +42,7 @@ const (
|
|||
putNamedMethod = "putNamed"
|
||||
)
|
||||
|
||||
var (
|
||||
errNilArgument = errors.New("empty argument")
|
||||
)
|
||||
var errNilArgument = errors.New("empty argument")
|
||||
|
||||
// NewFromMorph returns the wrapper instance from the raw morph client.
|
||||
//
|
||||
|
|
|
@ -22,7 +22,7 @@ func (a *AddPeerPrm) SetNodeInfo(nodeInfo netmap.NodeInfo) {
|
|||
// AddPeer registers peer in FrostFS network through
|
||||
// Netmap contract call.
|
||||
func (c *Client) AddPeer(p AddPeerPrm) error {
|
||||
var method = addPeerMethod
|
||||
method := addPeerMethod
|
||||
|
||||
if c.client.WithNotary() && c.client.IsAlpha() {
|
||||
// In notary environments Alphabet must calls AddPeerIR method instead of AddPeer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue