storj/multinode/nodes
Clement Sam 137641f090 multinode/nodes: pass Node entity to Add method instead of set of a parameters
The Add method on the multinode DB interface accepts
a set of parameters which are already fields in the nodes.Node struct
excluding the name field.

When adding a new node, you're forced to call UpdateName() method
after calling the Add() method in order to save a node and update
the name.

This change allows passing the nodes.Node entity which includes
the name field. With this, a new node can be added together with
the name without invoking the UpdateName() method.

Change-Id: I281ec628dffaade35d6db4479a84f39636200072
2021-12-15 12:39:24 +00:00
..
nodes_test.go multinode/nodes: pass Node entity to Add method instead of set of a parameters 2021-12-15 12:39:24 +00:00
nodes.go multinode/nodes: pass Node entity to Add method instead of set of a parameters 2021-12-15 12:39:24 +00:00
service.go multinode/nodes: pass Node entity to Add method instead of set of a parameters 2021-12-15 12:39:24 +00:00