Commit af90f1b
committed
Allow
Previously, our API would only allow users to have `ElectrumSyncClient`
a) construct an entirely `new` `electrum_client::Client` or b) take an
owened client via `from_client`.
Here, we change `ElectrumSyncClient::from_client` to accept an
`Arc<ElectrumClient>`, allowing to reuse a pre-existing client without
owning it. This is important as it will allow us to reuse the same
connection instead of forcing users to establish multiple connections if
they need something beyond syncing LDK.ElectrumSyncClient to reuse a preexisting client1 parent 7188d5b commit af90f1b
1 file changed
+7
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
| 492 | + | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
0 commit comments