Skip to content

Commit

Permalink
Change scope of PaymentInfo method
Browse files Browse the repository at this point in the history
  • Loading branch information
cndolo committed Jan 19, 2024
1 parent 6509403 commit 5d363a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulator/src/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub struct Results {
#[derive(Debug, Clone, Serialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct PaymentInfo {
pub(crate) id: usize,
pub id: usize,
pub succeeded: bool,
/// Number of parts this payment has been split into
pub num_parts: usize,
Expand Down Expand Up @@ -74,7 +74,7 @@ impl PathInfo {
}

impl PaymentInfo {
pub(super) fn from_payment(payment: &Payment) -> Self {
pub fn from_payment(payment: &Payment) -> Self {
let used_paths = PathInfo::from_payment(&payment.used_paths);
let failed_paths = PathInfo::from_payment(&payment.failed_paths);
Self {
Expand Down

0 comments on commit 5d363a4

Please sign in to comment.