Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhkovdmitrii committed Jul 17, 2023
1 parent 4dc23e6 commit 98101ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mm2src/adex_cli/src/rpc_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub(crate) struct EnableRequest {
pub(crate) struct ElectrumRequest {
coin: String,
#[serde(skip_serializing_if = "Vec::is_empty")]
servers: Vec<Server>,
pub(super) servers: Vec<Server>,
#[serde(skip_serializing_if = "Option::is_none")]
mm2: Option<u8>,
#[serde(default)]
Expand All @@ -62,7 +62,7 @@ pub(crate) struct ElectrumRequest {
}

#[derive(Debug, Deserialize, Serialize)]
struct Server {
pub(super) struct Server {
url: String,
#[serde(default)]
protocol: ElectrumProtocol,
Expand Down
3 changes: 1 addition & 2 deletions mm2src/adex_cli/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ use std::time::Duration;
use tokio::io::AsyncWriteExt;
use tokio::net::{TcpListener, TcpStream};

use mm2_rpc::data::legacy::ActivationRequest;

use crate::activation_scheme_db::{get_activation_scheme, init_activation_scheme};
use crate::adex_config::AdexConfigImpl;
use crate::adex_proc::ResponseHandlerImpl;
use crate::cli::Cli;
use crate::rpc_data::ActivationRequest;

const FAKE_SERVER_COOLDOWN_TIMEOUT_MS: u64 = 10;
const FAKE_SERVER_WARMUP_TIMEOUT_MS: u64 = 100;
Expand Down

0 comments on commit 98101ee

Please sign in to comment.