message: CLI: support number nodes to send read request
diff: @@ -82,6 +82,7 @@ pub mod connect_command {
  .add_optional_param("timeout", "Timeout for network request (in sec)")
  .add_optional_param("extended-timeout", "Extended timeout for network request (in sec)")
  .add_optional_param("pre-ordered-nodes", "Names of nodes which will have a priority during request sending")
  + .add_optional_param("number-read-nodes", "The number of nodes to send read requests (2 by default)")
  .add_example("pool connect pool1")
  .add_example("pool connect pool1 protocol-version=2")
  .add_example("pool connect pool1 protocol-version=2 timeout=100")
  @@ -97,12 +98,14 @@ pub mod connect_command {
  let timeout = get_opt_number_param::<i64>("timeout", params).map_err(error_err!())?;
  let extended_timeout = get_opt_number_param::<i64>("extended-timeout", params).map_err(error_err!())?;
  let pre_ordered_nodes = get_opt_str_array_param("pre-ordered-nodes", params).map_err(error_err!())?;
  + let number_read_nodes = get_opt_number_param::<u8>("number-read-nodes", params).map_err(error_err!())?;
  let config = {
  let mut json = JSONMap::new();
  update_json_map_opt_key!(json, "timeout", timeout);
  update_json_map_opt_key!(json, "extended_timeout", extended_timeout);
  update_json_map_opt_key!(json, "preordered_nodes", pre_ordered_nodes);
  + update_json_map_opt_key!(json, "number_read_nodes", number_read_nodes);
  JSONValue::from(json).to_string()
  };
  