diff options
author | hozan23 <hozan23@karyontech.net> | 2024-06-21 22:45:17 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-06-21 22:45:17 +0200 |
commit | 9aa972dd83a85cec5da71e8e893eb6e07d5db8ca (patch) | |
tree | a227c66e3e75e018f480556e1d58d40306acb12e /jsonrpc/src/lib.rs | |
parent | 8fc494d2d508f0e0beefccda31d15a5e387a9791 (diff) |
jsonrpc/client: fix subscription error when the subscriber cannot keep up
Add a limit for receiving notifications for the subscription. If this
limit is exceeded, the client will stop and raise an error. The limit is
configurable when building a new client.
Diffstat (limited to 'jsonrpc/src/lib.rs')
-rw-r--r-- | jsonrpc/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jsonrpc/src/lib.rs b/jsonrpc/src/lib.rs index d43783f..c72f067 100644 --- a/jsonrpc/src/lib.rs +++ b/jsonrpc/src/lib.rs @@ -8,6 +8,7 @@ mod server; pub use client::{builder::ClientBuilder, Client}; pub use error::{Error, RPCError, RPCResult, Result}; +pub use message::SubscriptionID; pub use server::{ builder::ServerBuilder, channel::{Channel, Subscription}, |