Skip to content

Commit

Permalink
driver: fix schedule payment
Browse files Browse the repository at this point in the history
  • Loading branch information
kamirr committed Jul 9, 2024
1 parent 1f8eede commit bdd5bb2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions core/payment/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use futures::{FutureExt, TryFutureExt};
use metrics::counter;
use std::collections::hash_map::Entry;
use std::collections::HashMap;
use std::str::FromStr;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use std::time::Duration;
Expand Down Expand Up @@ -558,11 +557,7 @@ impl PaymentProcessor {
.lock()
.await
.as_dao::<AllocationDao>()
.get(
msg.allocation_id.clone(),
NodeId::from_str(&caller)
.map_err(|e| SchedulePaymentError::InvalidInput(e.to_string()))?,
)
.get(msg.allocation_id.clone(), msg.payer_id)
.await?;

let deposit_id = if let AllocationStatus::Active(allocation) = allocation_status {
Expand Down

0 comments on commit bdd5bb2

Please sign in to comment.