Skip to content

Commit 1160034

Browse files
committed
fix: change channel config type in open_(announced)_channel
What this commit does: + Removes the wrapping Arc from the channel config. This is a missed update after rebasing.
1 parent 09fca09 commit 1160034

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ impl Node {
13011301
/// Opens a channel with a peer.
13021302
pub fn open_channel(
13031303
&self, node_id: PublicKey, address: SocketAddress, channel_amount_sats: u64,
1304-
push_to_counterparty_msat: Option<u64>, channel_config: Option<Arc<ChannelConfig>>,
1304+
push_to_counterparty_msat: Option<u64>, channel_config: Option<ChannelConfig>,
13051305
) -> Result<UserChannelId, Error> {
13061306
self.connect_open_channel(
13071307
node_id,
@@ -1315,7 +1315,7 @@ impl Node {
13151315
/// Opens an announced channel with a peer.
13161316
pub fn open_announced_channel(
13171317
&self, node_id: PublicKey, address: SocketAddress, channel_amount_sats: u64,
1318-
push_to_counterparty_msat: Option<u64>, channel_config: Option<Arc<ChannelConfig>>,
1318+
push_to_counterparty_msat: Option<u64>, channel_config: Option<ChannelConfig>,
13191319
) -> Result<UserChannelId, Error> {
13201320
if !can_announce_channel(&self.config) {
13211321
return Err(Error::OpenAnnouncedChannelFailed);

0 commit comments

Comments
 (0)