Skip to content

Commit

Permalink
Add Payjoin payout_queue Trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Jan 7, 2024
1 parent c068595 commit 02d22f6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/server/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ impl From<PayoutQueue> for proto::PayoutQueue {
proto::payout_queue_config::Trigger::IntervalSecs(seconds.as_secs() as u32)
}
PayoutQueueTrigger::Manual => proto::payout_queue_config::Trigger::Manual(true),
PayoutQueueTrigger::Payjoin => proto::payout_queue_config::Trigger::Payjoin(true)
};
let tx_priority: proto::TxPriority = payout_queue.config.tx_priority.into();
let config = Some(proto::PayoutQueueConfig {
Expand Down
1 change: 1 addition & 0 deletions src/payout_queue/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub enum PayoutQueueTrigger {
seconds: Duration,
},
Manual,
Payjoin,
}

impl Default for PayoutQueueConfig {
Expand Down
1 change: 1 addition & 0 deletions src/payout_queue/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ impl PayoutQueue {
match self.config.trigger {
Interval { seconds } => Some(seconds),
Manual => None,
Payjoin => None,
}
}

Expand Down

0 comments on commit 02d22f6

Please sign in to comment.