fix/355-increase-tree-service-client-cache-size #359
2 changed files with 0 additions and 17 deletions
|
@ -137,13 +137,6 @@ func setShardMode(cmd *cobra.Command, _ []string) {
|
||||||
cmd.Println("Shard mode update request successfully sent.")
|
cmd.Println("Shard mode update request successfully sent.")
|
||||||
}
|
}
|
||||||
|
|
||||||
func getShardID(cmd *cobra.Command) []byte {
|
|
||||||
sid, _ := cmd.Flags().GetString(shardIDFlag)
|
|
||||||
raw, err := base58.Decode(sid)
|
|
||||||
commonCmd.ExitOnErr(cmd, "incorrect shard ID encoding: %w", err)
|
|
||||||
return raw
|
|
||||||
}
|
|
||||||
|
|
||||||
func getShardIDList(cmd *cobra.Command) [][]byte {
|
func getShardIDList(cmd *cobra.Command) [][]byte {
|
||||||
all, _ := cmd.Flags().GetBool(shardAllFlag)
|
all, _ := cmd.Flags().GetBool(shardAllFlag)
|
||||||
if all {
|
if all {
|
||||||
|
|
|
@ -136,16 +136,6 @@ func (c *Client) readUInt64Config(key string) (uint64, error) {
|
||||||
return uint64(v.(int64)), nil
|
return uint64(v.(int64)), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) readStringConfig(key string) (string, error) {
|
|
||||||
v, err := c.config([]byte(key), StringAssert)
|
|
||||||
if err != nil {
|
|
||||||
return "", err
|
|
||||||
}
|
|
||||||
|
|
||||||
// StringAssert is guaranteed to return string if the error is nil.
|
|
||||||
return v.(string), nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// reads boolean value by the given key from the FrostFS network configuration
|
// reads boolean value by the given key from the FrostFS network configuration
|
||||||
// stored in the Sidechain. Returns false if key is not presented.
|
// stored in the Sidechain. Returns false if key is not presented.
|
||||||
func (c *Client) readBoolConfig(key string) (bool, error) {
|
func (c *Client) readBoolConfig(key string) (bool, error) {
|
||||||
|
|
Loading…
Reference in a new issue