Skip to content

Commit 7831629

Browse files
committed
do not return Result in ChannelManager constructor
* Since it is now pointless.
1 parent 6e9e1cd commit 7831629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/src/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub(crate) fn construct_channel_manager(
9797
get_est_sat_per_1000_weight_ptr: Ref<fee_estimator_fn::GetEstSatPer1000WeightPtr>,
9898
cur_block_height: usize,
9999

100-
) -> Result<FFIArcChannelManager, secp256k1::Error> {
100+
) -> FFIArcChannelManager {
101101
let network = ffi_network.to_network();
102102
let now = SystemTime::now().duration_since(UNIX_EPOCH).unwrap();
103103
let mut seed: [u8; 32] = unsafe_block!("it points to valid length buffer" => seed.as_ref()).clone().bytes;
@@ -176,7 +176,7 @@ ffi! {
176176
log_ref,
177177
get_est_sat_per_1000_weight_ptr,
178178
cur_block_height,
179-
)?;
179+
);
180180
unsafe_block!("We know chan_man is not null by wrapper macro. And we know `Out` is writable" => chan_man.init(HandleShared::alloc(chan_man_raw)));
181181
FFIResult::ok()
182182
}

0 commit comments

Comments
 (0)