Skip to content

Commit 9f5f275

Browse files
committed
f chan_context -> context
1 parent 81c2123 commit 9f5f275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,15 +614,15 @@ impl<'a, SP: Deref> ChannelPhase<SP> where
614614
SP::Target: SignerProvider,
615615
<SP::Target as SignerProvider>::Signer: ChannelSigner,
616616
{
617-
pub fn chan_context(&'a self) -> &'a ChannelContext<SP> {
617+
pub fn context(&'a self) -> &'a ChannelContext<SP> {
618618
match self {
619619
ChannelPhase::Funded(chan) => &chan.context,
620620
ChannelPhase::UnfundedOutboundV1(chan) => &chan.context,
621621
ChannelPhase::UnfundedInboundV1(chan) => &chan.context,
622622
}
623623
}
624624

625-
pub fn chan_context_mut(&'a mut self) -> &'a mut ChannelContext<SP> {
625+
pub fn context_mut(&'a mut self) -> &'a mut ChannelContext<SP> {
626626
match self {
627627
ChannelPhase::Funded(ref mut chan) => &mut chan.context,
628628
ChannelPhase::UnfundedOutboundV1(ref mut chan) => &mut chan.context,

0 commit comments

Comments
 (0)