bitcoindevkit / rust-electrum-client

Bitcoin Electrum client library. Supports plaintext, TLS and Onion servers.
MIT License
78 stars 63 forks source link

Add `Batch::raw` and improve docs #94

Closed evanlinjin closed 10 months ago

evanlinjin commented 1 year ago

Being able to add raw requests to Batch makes sense from an API standpoint because we already allow raw non-batched requests. This is also useful when the electrum server API gets an updated version and our client is unable to keep up.

Additional to this, I have improved the documentation and made Call private (since Call is never used externally).

evanlinjin commented 1 year ago

Maybe it would be better to make Batch::calls public. This will allow us to collect into it, which would be more useful?