Skip to content

Commit

Permalink
Update after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Oct 1, 2024
1 parent c6a60ed commit 14647bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion core/payment/src/api/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ async fn get_batch_cycles(id: Identity) -> HttpResponse {
let node_id = id.identity;

let drivers = match bus::service(pay_local::BUS_ID)
.call(pay_local::GetDrivers {})
.call(pay_local::GetDrivers {
ignore_legacy_networks: true,
})
.await
{
Ok(Ok(drivers)) => drivers,
Expand Down
12 changes: 8 additions & 4 deletions core/payment/src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
mod rpc;

use std::collections::HashMap;
use std::collections::{BTreeMap, HashMap};
// External crates
use bigdecimal::BigDecimal;
use chrono::{DateTime, Utc};
use serde_json::{json, to_value};
use serde_json::{json, to_value, Value};
use std::str::FromStr;
use std::time::{Duration, UNIX_EPOCH};
use structopt::*;
use ya_client_model::payment::DriverStatusProperty;
use ya_client_model::payment::{DriverDetails, DriverStatusProperty};
use ya_client_model::NodeId;
use ya_core_model::payment::local::{NetworkName, ProcessBatchCycleResponse};

Expand Down Expand Up @@ -604,7 +604,11 @@ Typically operation should take less than 1 minute.
})
}
ProcessCommand::Info { account } => {
let drivers = bus::service(pay::BUS_ID).call(pay::GetDrivers {}).await??;
let drivers = bus::service(pay::BUS_ID)
.call(pay::GetDrivers {
ignore_legacy_networks: true,
})
.await??;

let node_id = if let Some(node_id) = account {
node_id
Expand Down

0 comments on commit 14647bc

Please sign in to comment.