forked from TrueCloudLab/frostfs-node
Alex Vanin
20de74a505
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
18 lines
399 B
Go
18 lines
399 B
Go
package maddress
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/network"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/netmap"
|
|
)
|
|
|
|
// VerifyAndUpdate calls network.VerifyAddress.
|
|
func (v *Validator) VerifyAndUpdate(n *netmap.NodeInfo) error {
|
|
err := network.VerifyMultiAddress(*n)
|
|
if err != nil {
|
|
return fmt.Errorf("could not verify multiaddress: %w", err)
|
|
}
|
|
|
|
return nil
|
|
}
|