forked from TrueCloudLab/frostfs-node
[#979] adm/subnet: Fix typos
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
dd2998d724
commit
1b698867a7
1 changed files with 6 additions and 6 deletions
|
@ -86,13 +86,18 @@ func initSubnetClient(c *morphsubnet.Client, key *keys.PrivateKey) error {
|
||||||
return initSubnetClientCheckNotary(c, key, false)
|
return initSubnetClientCheckNotary(c, key, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
// enable notary
|
||||||
|
flagSubnetNotary = "notary"
|
||||||
|
)
|
||||||
|
|
||||||
// initializes morph subnet client with the specified private key.
|
// initializes morph subnet client with the specified private key.
|
||||||
//
|
//
|
||||||
// Parameters are read from:
|
// Parameters are read from:
|
||||||
// * contract address: flagSubnetContract;
|
// * contract address: flagSubnetContract;
|
||||||
// * endpoint: flagSubnetEndpoint.
|
// * endpoint: flagSubnetEndpoint.
|
||||||
//
|
//
|
||||||
// If checkNotary is set, non-notary mode is read from flagSubnetNonNotary.
|
// If checkNotary is set, notary mode is read from flagSubnetNotary.
|
||||||
func initSubnetClientCheckNotary(c *morphsubnet.Client, key *keys.PrivateKey, checkNotary bool) error {
|
func initSubnetClientCheckNotary(c *morphsubnet.Client, key *keys.PrivateKey, checkNotary bool) error {
|
||||||
// read endpoint
|
// read endpoint
|
||||||
endpoint := viper.GetString(flagSubnetEndpoint)
|
endpoint := viper.GetString(flagSubnetEndpoint)
|
||||||
|
@ -138,11 +143,6 @@ func initSubnetClientCheckNotary(c *morphsubnet.Client, key *keys.PrivateKey, ch
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
|
||||||
// enable notary
|
|
||||||
flagSubnetNotary = "notary"
|
|
||||||
)
|
|
||||||
|
|
||||||
// create subnet command.
|
// create subnet command.
|
||||||
var cmdSubnetCreate = &cobra.Command{
|
var cmdSubnetCreate = &cobra.Command{
|
||||||
Use: "create",
|
Use: "create",
|
||||||
|
|
Loading…
Reference in a new issue