@@ -80,14 +80,14 @@ impl PendingOutboundPayment {
80
80
_ => false ,
81
81
}
82
82
}
83
- pub ( super ) fn get_pending_fee_msat ( & self ) -> Option < u64 > {
83
+ fn get_pending_fee_msat ( & self ) -> Option < u64 > {
84
84
match self {
85
85
PendingOutboundPayment :: Retryable { pending_fee_msat, .. } => pending_fee_msat. clone ( ) ,
86
86
_ => None ,
87
87
}
88
88
}
89
89
90
- pub ( super ) fn payment_hash ( & self ) -> Option < PaymentHash > {
90
+ fn payment_hash ( & self ) -> Option < PaymentHash > {
91
91
match self {
92
92
PendingOutboundPayment :: Legacy { .. } => None ,
93
93
PendingOutboundPayment :: Retryable { payment_hash, .. } => Some ( * payment_hash) ,
@@ -96,7 +96,7 @@ impl PendingOutboundPayment {
96
96
}
97
97
}
98
98
99
- pub ( super ) fn mark_fulfilled ( & mut self ) {
99
+ fn mark_fulfilled ( & mut self ) {
100
100
let mut session_privs = HashSet :: new ( ) ;
101
101
core:: mem:: swap ( & mut session_privs, match self {
102
102
PendingOutboundPayment :: Legacy { session_privs } |
@@ -109,7 +109,7 @@ impl PendingOutboundPayment {
109
109
* self = PendingOutboundPayment :: Fulfilled { session_privs, payment_hash, timer_ticks_without_htlcs : 0 } ;
110
110
}
111
111
112
- pub ( super ) fn mark_abandoned ( & mut self ) -> Result < ( ) , ( ) > {
112
+ fn mark_abandoned ( & mut self ) -> Result < ( ) , ( ) > {
113
113
let mut session_privs = HashSet :: new ( ) ;
114
114
let our_payment_hash;
115
115
core:: mem:: swap ( & mut session_privs, match self {
@@ -127,7 +127,7 @@ impl PendingOutboundPayment {
127
127
}
128
128
129
129
/// panics if path is None and !self.is_fulfilled
130
- pub ( super ) fn remove ( & mut self , session_priv : & [ u8 ; 32 ] , path : Option < & Vec < RouteHop > > ) -> bool {
130
+ fn remove ( & mut self , session_priv : & [ u8 ; 32 ] , path : Option < & Vec < RouteHop > > ) -> bool {
131
131
let remove_res = match self {
132
132
PendingOutboundPayment :: Legacy { session_privs } |
133
133
PendingOutboundPayment :: Retryable { session_privs, .. } |
0 commit comments