@@ -80,14 +80,14 @@ impl PendingOutboundPayment {
8080 _ => false ,
8181 }
8282 }
83- pub ( super ) fn get_pending_fee_msat ( & self ) -> Option < u64 > {
83+ fn get_pending_fee_msat ( & self ) -> Option < u64 > {
8484 match self {
8585 PendingOutboundPayment :: Retryable { pending_fee_msat, .. } => pending_fee_msat. clone ( ) ,
8686 _ => None ,
8787 }
8888 }
8989
90- pub ( super ) fn payment_hash ( & self ) -> Option < PaymentHash > {
90+ fn payment_hash ( & self ) -> Option < PaymentHash > {
9191 match self {
9292 PendingOutboundPayment :: Legacy { .. } => None ,
9393 PendingOutboundPayment :: Retryable { payment_hash, .. } => Some ( * payment_hash) ,
@@ -96,7 +96,7 @@ impl PendingOutboundPayment {
9696 }
9797 }
9898
99- pub ( super ) fn mark_fulfilled ( & mut self ) {
99+ fn mark_fulfilled ( & mut self ) {
100100 let mut session_privs = HashSet :: new ( ) ;
101101 core:: mem:: swap ( & mut session_privs, match self {
102102 PendingOutboundPayment :: Legacy { session_privs } |
@@ -109,7 +109,7 @@ impl PendingOutboundPayment {
109109 * self = PendingOutboundPayment :: Fulfilled { session_privs, payment_hash, timer_ticks_without_htlcs : 0 } ;
110110 }
111111
112- pub ( super ) fn mark_abandoned ( & mut self ) -> Result < ( ) , ( ) > {
112+ fn mark_abandoned ( & mut self ) -> Result < ( ) , ( ) > {
113113 let mut session_privs = HashSet :: new ( ) ;
114114 let our_payment_hash;
115115 core:: mem:: swap ( & mut session_privs, match self {
@@ -127,7 +127,7 @@ impl PendingOutboundPayment {
127127 }
128128
129129 /// 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 {
131131 let remove_res = match self {
132132 PendingOutboundPayment :: Legacy { session_privs } |
133133 PendingOutboundPayment :: Retryable { session_privs, .. } |
0 commit comments