Skip to content

Commit 9ea1c0b

Browse files
authored
Allow importing multiple descriptors at a time (#21)
1 parent 81df457 commit 9ea1c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,9 @@ pub trait RpcApi: Sized {
667667

668668
fn import_descriptors(
669669
&self,
670-
req: json::ImportDescriptors,
670+
req: &[json::ImportDescriptors],
671671
) -> Result<Vec<json::ImportMultiResult>> {
672-
let json_request = vec![serde_json::to_value(req)?];
672+
let json_request = serde_json::to_value(req)?;
673673
self.call("importdescriptors", handle_defaults(&mut [json_request.into()], &[null()]))
674674
}
675675

0 commit comments

Comments
 (0)