- 04 Aug, 2022 1 commit
-
-
Alexandru Vasile authored
* Rename Middleware to Metrics Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Change documentation to reflect the `Metrics` trait Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Middleware name refactoring Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Http middleware renaming Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename examples Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update http-server/src/server.rs Co-authored-by:
James Wilson <james@jsdw.me> * http: Use `request` instead of `HeaderMap` for logging Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `Metrics` -> `Logger` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix cargo clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix examples Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix cargo fmt Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix hyper dependency Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
James Wilson <james@jsdw.me>
-
- 03 Aug, 2022 1 commit
-
-
Niklas Adolfsson authored
Closing https://github.com/paritytech/jsonrpsee/issues/838
-
- 29 Jul, 2022 2 commits
-
-
Alexandru Vasile authored
* Bump jsonrpsee version to 0.15.1 Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update changelog Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update CHANGELOG.md Co-authored-by:
James Wilson <james@jsdw.me> Co-authored-by:
James Wilson <james@jsdw.me>
-
Patrick Kuo authored
* add id to tracing span * Revert "add id to tracing span" This reverts commit 5e01e6be. * Avoid using Span::enter() in async functions, following tracing's doc instruction https://docs.rs/tracing/latest/tracing/struct.Span.html#in-asynchronous-code * * fixed all Span::enter() * clean up * fix fmt * changed RpcTracing::span -> into_span instead of cloning the span
-
- 21 Jul, 2022 1 commit
-
-
James Wilson authored
* Add generate_changelog and adapt release checklist from subxt to make the process a little easier * prepare to releasse v0.15.0 * release checklist tweak * fix numbers in release checklist * Add details about #820 to changelog
-
- 20 Jul, 2022 1 commit
-
-
Niklas Adolfsson authored
-
- 06 Jul, 2022 2 commits
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* WIP: refactoring * refactor http server * fix tests * Delete TODO.txt * fix tests again * add benches/src/lib.rs * remove bench changes; fast less deps * no more env_logger * update examples * ws server; expose headers in middleware * add back uncommented code * fix nits * make the code more readable * add back the tracing stuff * simplify code but one extra clone * fix tests again * revert async accept API * fix nits * different traits for WS and HTTP middleware * fix tests * revert benchmark change * Update core/src/server/helpers.rs * Update ws-server/Cargo.toml * add limit to batch responses as well * pre-allocate string for batches * small refactor
-
- 29 Jun, 2022 1 commit
-
-
Alexandru Vasile authored
* subscription: Allow errors in subscription callbacks Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * subscription: Remove the need to own the error Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * error: Build `ErrorObject` from `CallError` for improved ergonomics Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update examples for the new subscription API Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add alias for subscription result Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * macros: Render server subscription method with `ResultSubscription` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Port `proc_macro` example to new API Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `ResultSubscription` to `ReturnTypeSubscription` to avoid confusion Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Port all tests to new subscription API Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Port benches Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Replace tabs with spaces & add documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add dummy error for subscriptions Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Implement `From` for `SubscriptionError` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Return `SubscriptionError` when parsing params Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `SubscriptionError` to `SubscriptionEmptyError` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Change `accept` signature Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Port tests to new `accept` api Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Implement `pipe_from_try_stream` and `pipe_from_stream` for `PendingSubscription` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Modify examples to ilustrate new API Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix docs tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename previously `SubscriptionResult` -> `InnerSubscriptionResult` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `ReturnTypeSubscription` -> `SubscriptionResult` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove documentation line Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Implement `PipeFromStreamResult` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add comment for empty error Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update proc-macros/src/lib.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update proc-macros/src/lib.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update proc-macros/src/lib.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Change `ReturnTypeSubscription` -> `SubscriptionResult` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add `ResultConsumed` for `PipeFromStreamResult` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update examples to use `PipeFromStreamResult` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Replace ConsumedResult with Options Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Log warning when subscription callback fails Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Change ubuntu test names Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Make `pipe` methods of `SubscriptionSink` private Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Remove `pipe_from_stream` method of `SubscriptionSink` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Update PipeFromStreamResult documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Adjust tests to `SubscriptionSink::pipe_from_stream` private interface Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add `accept-reject` API on `SubscriptionSink` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Make `pipe_from_try_stream` public Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Maybe accept the subscription Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Revert "server: Remove `pipe_from_stream` method of `SubscriptionSink`" This reverts commit d3c3ce9c . * Make `unsubscribe` channel optional on accepting the connection Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Pass `SubscriptionSink` to subscription callbacks Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Implement subscription sink state Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Submit `InvalidParams` if sink was never accepted Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Handle rejected sinks Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove `PendingSubscription` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix doc tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * macro: Make subscription sink mutable Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix tests and examples Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * macro: Return `sink.reject()` result Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Add test for `SubscriptionSinkState` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Test internal subscription sink state Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix `send_error` to not always return `false` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix benches Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove `PipeFromStreamResult` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Use valid Json-RPC return code for test errors Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove `SubscriptionSinkState`" * Remodel state machine using `Option`s for `SubscriptionSink`s Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Double accept / reject API for `SubscriptionSink` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Implement `SubscriptionAcceptRejectError` for error propagation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove `maybe_accept` wrapper Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update comments and documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update core/src/server/rpc_module.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update core/src/server/rpc_module.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * rpc_server: Add type alias for unsubscription calls Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * rpc_server: Improve comment regarding dropped error Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * style: Single line return errors Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Make comment more verbose Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> Co-authored-by:
James Wilson <james@jsdw.me>
-
- 21 Jun, 2022 3 commits
-
-
Niklas Adolfsson authored
To include the bugfix for `tracing::enabled!` when `log` is enabled. Follow up on #722
-
Niklas Adolfsson authored
* feat(clients): add explicit unsubscribe API * add tests for unsubscribe * rephrase bad english
-
Niklas Adolfsson authored
* less verbose logging + tracing based on method name * add tracing per rpc call * fix nits * remove unsed feature * fix build * http make logging more human friendly * unify logging format * deps: make tracing hard dependency * fix tests * fix nit * fix build * fix nits * Update core/src/client/async_client/mod.rs * Update core/Cargo.toml * Update core/src/lib.rs
-
- 14 Jun, 2022 2 commits
-
-
Alexandru Vasile authored
* ws-server: Fix copyright for tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * rpc_module: Return a resource builder when subscribing Registering a subscription returns the subscription' callback wrapped into a `MethodResourcesBuilder` for resource limiting purposes. Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Fix `register_subscription` tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Drop `ResourceGuard` with `SubscriptionSink` for resource limit Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Check resource limits for subscription Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * proc-macros: Render resource limits for subscription macro Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Extend subscription limiting test via macro generation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Check if the `unsubscribe` method was already inserted Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Fix unsupported fields for subscriptions Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Verify subscription methods before registering them Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update test comment for subscription limiting Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Modify tests comments Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
Niklas Adolfsson authored
* chore(release): v0.14.0 * Update CHANGELOG.md * Update CHANGELOG.md
-
- 13 Jun, 2022 3 commits
-
-
Niklas Adolfsson authored
* fix(servers): more descriptive errors calls fail Closing #775 * fix tests * rename constants * address grumbles
-
Niklas Adolfsson authored
* initial rewrite to re-use HTTP access control * clean things up * Update core/src/error.rs * Update core/src/error.rs * allow origin: add back removed Display impl * cleanup again * Update http-server/src/lib.rs * Update examples/examples/cors_server.rs * Update core/src/server/access_control/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update http-server/src/server.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * fix bad comment * remove todo * fix grumbles * more grumbles * rename and document a bit * remove `Access-Control-Allow-Origin` in whitelist * fix nit: pub(super) * fix bad naming Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com>
-
Niklas Adolfsson authored
-
- 01 Jun, 2022 1 commit
-
-
Alexandru Vasile authored
* ws: Implement ping for `TransportSenderT` trait Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * ws/client: Receive pong frames Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core/client: Use `select!` macro for the background task Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Propagate ping interval to background task Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * async_client: Submit ping requests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * async_client: Handle pong replies Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Handle frontend messages to dedicated fn Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Handle backend messages in dedicated fn Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Add terminated fuse for opt-out pings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Set opt-out behavior for client pings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Move imports Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Handle handle_frontend_messages errors Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Add custom error related to byteslice conversions Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Modify `send_ping` to send empty slices Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix `cargo hack check` and use `select_biased` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Handle sending pings with lowest priority Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Add proper number of params to `background_task` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix wasm client Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Handle raw bytes and string received messages Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix Cargo.toml feature Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Panic when empty slice does not fit into `ByteSlice125` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * wasm: Add operation not supported for pings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `ReceivedMessage` from Data to Text Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename test variable Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Use `future::select` for cancel safety Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Remove `pong` handling logic Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Update ping documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update core/src/client/async_client/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update core/src/client/async_client/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update core/src/client/async_client/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update core/src/client/async_client/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update core/src/client/async_client/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update core/Cargo.toml Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update core/Cargo.toml Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * logs: Keep debug log for submitting `Ping` frames Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Print debug logs when receiving `Pong` frames Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update core/src/client/async_client/mod.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 25 May, 2022 1 commit
-
-
Alexander Polakov authored
-
- 19 May, 2022 1 commit
-
-
Niklas Adolfsson authored
-
- 13 May, 2022 2 commits
-
-
Niklas Adolfsson authored
* chore(release): v0.13.1 * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update CHANGELOG.md Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com>
-
Niklas Adolfsson authored
* fix: generate docs for all features * ci: check for --cfg docsrs * fix nit: rustdoc::broken_intra_doc_links
-
- 11 May, 2022 1 commit
-
-
Niklas Adolfsson authored
* chore(release): v0.13.0 * Update CHANGELOG.md
-
- 06 May, 2022 3 commits
-
-
James Wilson authored
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* fix: generate docs behind features * address grumbles
-
- 03 May, 2022 1 commit
-
-
Niklas Adolfsson authored
* feat: limit the number of subscriptions Closing #729 * fix nit * Update core/src/server/helpers.rs * add integration tests + some fixes so it works * cargo fmt * fix doc links * Unsubscribe calls should avoid subscription limits Point to Tokio 1.16 (we use a method from it), and a little special treatment for unsubscribe methods * No resource limiting for Unsubscribe calls * Test that we can still unsubscribe after hitting a limit * Fix a comment typo Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * Update core/src/server/rpc_module.rs * Update core/src/server/rpc_module.rs Co-authored-by:
James Wilson <james@jsdw.me> Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
-
- 29 Apr, 2022 1 commit
-
-
Niklas Adolfsson authored
fix(rpc module): close subscription task when a subscription is `unsubscribed` via the `unsubscribe call` (#743) * refactor: remove SubscriptionSink::inner_send * fix: close running task if unsubscribed * Update core/src/server/rpc_module.rs * Update core/src/server/rpc_module.rs * fix nits * Update core/src/server/rpc_module.rs * add test for canceling subscriptions * print subscription info; once per minute * revert closure stuff * Revert "print subscription info; once per minute" This reverts commit 366176a8 . * use tokio::sync::watch instead of oneshot The receiver is clonable and it's possible to check whether the sender is still alive * Update tests/tests/helpers.rs Co-authored-by:
David <dvdplm@gmail.com> * Update core/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * grumbles: use unwrap in tests * add test for reuse pipe_from_stream Co-authored-by:
David <dvdplm@gmail.com>
-
- 21 Apr, 2022 1 commit
-
-
Niklas Adolfsson authored
* chore(release): v0.11.0 * remove unused deps * docs: rephrase bad english * Update CHANGELOG.md * update publish script * Update CHANGELOG.md Co-authored-by:
David <dvdplm@gmail.com> * Update CHANGELOG.md Co-authored-by:
David <dvdplm@gmail.com> * Update CHANGELOG.md Co-authored-by:
David <dvdplm@gmail.com> Co-authored-by:
David <dvdplm@gmail.com>
-
- 20 Apr, 2022 2 commits
-
-
Niklas Adolfsson authored
* feat: untested web-sys transport * rewrite me * make it work * add hacks and works :) * add subscription test too * revert StdError change; still works * cleanup * remove hacks * more wasm tests outside workspace * kill mutually exclusive features * merge nits * remove unsafe hack * fix nit * core: fix features and deps * ci: add WASM test * test again * work work * comeon * work work * revert unintentional change * Update core/Cargo.toml Co-authored-by:
David <dvdplm@gmail.com> * Update core/src/client/async_client/mod.rs Co-authored-by:
David <dvdplm@gmail.com> * revert needless change: std hashmap + fxhashmap works * cleanup * extract try_connect_until fn * remove todo * fix bad merge * add wasm client wrapper crate * fix nits * use gloo-net dependency * fix build * grumbles CI: rename to `wasm_tests` * fix bad merge * fix grumbles * fix nit * comeon CI Co-authored-by:
David <dvdplm@gmail.com>
-
Niklas Adolfsson authored
* fix(rpc module): fail subscription with bad params * draft; show my point * fix tests * fix build * add tests for proc macros too * add tests for bad params in proc macros * fix nits * commit all files * add ugly fix for proc macro code * add more user friendly API * make SubscriptionSink::close take mut self * fix grumbles * show james some code * Update core/src/server/rpc_module.rs Co-authored-by:
James Wilson <james@jsdw.me> * remove needless clone * fix build * client fix docs + error type * simplify code: merge connect reset and unsubscribe close reason * remove unknown close reason * refactor: remove Error::SubscriptionClosed * add some nice APIs to ErrorObjectOwned * unify api * address grumbles * remove redundant methods for close and reject * proc macro: compile err when subscription -> Result * rpc module: fix test subscription test * Update core/src/server/rpc_module.rs Co-authored-by:
James Wilson <james@jsdw.me> * Update core/src/server/rpc_module.rs Co-authored-by:
James Wilson <james@jsdw.me> * Update core/src/server/rpc_module.rs Co-authored-by:
James Wilson <james@jsdw.me> * Update core/src/server/rpc_module.rs Co-authored-by:
James Wilson <james@jsdw.me> * Update core/src/server/rpc_module.rs Co-authored-by:
James Wilson <james@jsdw.me> * Update proc-macros/src/lib.rs Co-authored-by:
James Wilson <james@jsdw.me> * address grumbles * remove faulty comment * Update core/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update core/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update core/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update core/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update core/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * fix: don't send `RPC Call failed: error`. * remove debug assert Co-authored-by:
James Wilson <james@jsdw.me> Co-authored-by:
David <dvdplm@gmail.com>
-
- 05 Apr, 2022 3 commits
-
-
Niklas Adolfsson authored
* refactor(log): downgrade send errors to warn These logs are most likely related to that the client terminated the connection and they come with significant overhead. * chore(release): v0.10.1
-
Niklas Adolfsson authored
These logs are most likely related to that the client terminated the connection and they come with significant overhead.
-
Niklas Adolfsson authored
-
- 04 Apr, 2022 1 commit
-
-
Niklas Adolfsson authored
* update changelog * update versions v0.10.0 * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com>
-
- 01 Apr, 2022 2 commits
-
-
Niklas Adolfsson authored
* fix(client): close subscription when server sent `SubscriptionClosed` notification * Update core/src/client/async_client/helpers.rs
-
Niklas Adolfsson authored
* refactor: make `pipe_from_stream` take stream of result The rationale for this is that it is more flexible for use cases when `Stream<Item = Result<T, Error>>`. Take for example `tokio_stream::Broadcast` then one would have to something like: ```rust let stream = BroadcastStream::new(rx).take_while(|r| future::ready(r.is_ok())).filter_map(|r| future::ready(r.ok())); ``` Of course it's a bit awkward to return `Result` when the underlying stream can't fail but I think that's fair trade-off here. * Update core/src/server/rpc_module.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com> * pipe_from_stream: make E: Display instead of StdError * add a test * add `pipe_from_try_stream` API to support `TryStream` * Update tests/tests/integration_tests.rs * Update proc-macros/src/lib.rs Co-authored-by:
Tarik Gul <47201679+TarikGul@users.noreply.github.com>
-
- 30 Mar, 2022 1 commit
-
-
Niklas Adolfsson authored
* refactor: get rid off `Error::Request` variant * fix nit * to_owned -> to_call_error
-
- 09 Mar, 2022 1 commit
-
-
David authored
* wip wip wip Use tokio::sync::Notify to signal to the server when a subscriber has gone away without calling unsubscribe * Cleanup * Fmt * More cleanup more TODOs * fmt * Address a few todos * Update core/src/server/rpc_module.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update ws-server/src/server.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Fix bad merge * Test * fmt * fix test * Finish test * Cleanup Add a second subscription to serverless test * Update tests/tests/integration_tests.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * simplify test * Review feedback: avoid allocations * cleanup * Remove async-channel * remove async-channel deps Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 22 Feb, 2022 1 commit
-
-
Niklas Adolfsson authored
* fix(rpc module): unsubscribe ethereum pubsub spec * update docs * fix clippy * fix tests
-