- 23 Sep, 2022 1 commit
-
-
Niklas Adolfsson authored
* fix(benches): increase sample time for benches * change to 100s * split benchmarks slow/fast * increase default sample time * Update benches/README.md * sample_time -> measurment_time
-
- 16 Sep, 2022 1 commit
-
-
Niklas Adolfsson authored
* tracing: use instrument macro * fix merge nit * cargo fmt * tracing span in TRACE only * Update core/src/client/async_client/mod.rs * get rid of tracing-futures * less noise for subscription spans * nits: replace spaces with tabs
-
- 15 Sep, 2022 1 commit
-
-
Niklas Adolfsson authored
* fix(http client): serde_json::Value -> T This PR changes the http client to decode the reponse as `Response<serde_json::Value> -> Response<R>` In order to get a more user-friendly error message Before: ``` response: Err(ParseError(Error("missing field `error`", line: 1, column: 3752798))) ``` After ``` 2022-08-11T13:57:12.033043Z INFO http: r: Parse error: invalid type: string "lo", expected u8 ``` * address grumbles * Update client/http-client/src/client.rs * Update client/http-client/src/client.rs
-
- 13 Sep, 2022 1 commit
-
-
Niklas Adolfsson authored
* ws server: support both http and ws * clean things up * ws server: add http logger and ws logger * more cleanup * fix nits * middleware example * remove http and ws server crates * move things around * some minor fixes * fix stop in http context * fix tests * fix features * use header constants * remove access_control & expose only host filtering CORS has been removed to tower middleware and doesn't need to supported anymore * fix merge logging traits + move to server * supress warnings faulty dead code * remove unwrap * support http2 * doesnt work * feat: simpler stop handling * Update server/src/future.rs * some cleanup * Update server/src/future.rs Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * Update server/src/future.rs Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * fix nits * address grumbles * commit examples and nits * clarify comment * remove noise * remove impl Future for ServerHandle * remove needless async {} * add http2 test * add ServerBuilder::build_from_tcp * fix super nit: no more Option<SocketAddr> * fix Option<SocketAddr> * Update server/src/future.rs Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * Update server/src/future.rs Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com>
-
- 06 Sep, 2022 1 commit
-
-
Alexandru Vasile authored
* core: Fix doc typo Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Implement generic `ParamBuilder` for RPC parameters Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Add specialized RPC parameter builder for arrays and maps Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Implement parameter builder for batch requests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Implement `rpc_params` in the `types` crate Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Adjust `ClientT` for generic efficient parameters Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * proc-macro: Render clients using the parameter builders Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Adjust testing to the `ToRpcParams` interface Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Move `rpc_params` to core and simplify testing Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Rename server's trait to `ToRpcServerParams` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * bench: Adjust benches to the `ToRpcParams` interface Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Rename batch builder to `BatchRequestBuilder` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Re-enable proc-macro example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Fix doc tests and add panic documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Fix documentation link Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Use BatchRequestBuilder as parameter for batch requests 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> * types: Add specialized constructors for internal `ParamsBuilder` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Implement `EmptyParams` for client's parameters Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Fix macos disabled test Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Improve comment Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * benches: Rename functions Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * types: Rename param types to `ArrayParams` and `ObjectParams` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Move paramters to core crate Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Return `core::Error` from `ToRpcParams` trait Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix doc link Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix `ArrayParamsBuilder` doc links Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove `ToRpcServerParams` trait Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Fix `ToRpcParams` docs Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove `ParamsSer` and extend benchmarking Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Optimise `rpc_params` to avoid allocation on error Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * params: zero allocation for empty params Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add copyright back Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * traits: Remove empty doc line Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update core/src/traits.rs Co-authored-by:
James Wilson <james@jsdw.me> * Update core/src/traits.rs Co-authored-by:
James Wilson <james@jsdw.me> * examples: Restore `proc_macro` example to origin/master Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Remove empty case for `rpc_params` macro Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> Co-authored-by:
James Wilson <james@jsdw.me>
-
- 01 Sep, 2022 1 commit
-
-
Alexander Polakov authored
-
- 29 Aug, 2022 1 commit
-
-
Niklas Adolfsson authored
-
- 24 Aug, 2022 2 commits
-
-
Alexandru Vasile authored
Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
Alexandru Vasile authored
* middleware: Proxy `GET /path` requests to internal methods Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * middleware: Modify the response for proxies Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add `ProxyRequestLayer` example for URI redirection Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Remove internal Health API Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * middleware: Replace `ResponseFuture` with pinning Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * middleware: Use `Uri::from_static` and `RequestSer` for body message Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * middleware: Use `Arc<str>` instead of `String` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `ProxyRequest` to `ProxyGetRequest` and rename mod to `middleware` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * middleware: Improve docs Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * middleware: Fail if path does not start with `/` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Remove pin project dependency Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `proxy_request.rs` to `proxy_get_request.rs` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
- 17 Aug, 2022 1 commit
-
-
Alexandru Vasile authored
* client: Log when frontend is dropped Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Never fail to handle frontend messages Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Format frontend warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Format backend messages Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Uniform log messages Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Uniform logs Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Adjust logs Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * test: Fix cargo clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * server: Log error as unrecoverable Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update core/src/client/async_client/mod.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update core/src/client/async_client/mod.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 16 Aug, 2022 3 commits
-
-
Alexandru Vasile authored
* client: Implement `notify_on_disconnect` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Revert "client: Implement `notify_on_disconnect`" This reverts commit c8ffaa4c . * client: Rely on `tokio::sync::mpsc::Sender` to notify on disconnect Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Implement `InternalError` for tokio and futures_channel's SendError Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Remove tokio-stream dependency Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Rename `notify_on_disconnect` to `on_disconnect` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add `tokio/sync` as dependency of client feature Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * wasm-client: Use `tokio::sync::mpsc::channel` for notify on disconnect Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add tokio/sync dependency to satisfy `--no-default-features` check Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Best effort to close channel on client drops Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * revert to: client: Implement `notify_on_disconnect` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Replace tokio/sync with oneshot channel Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Check `client.on_disconnect()` returns when server shuts down Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Fix comment typo Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Call `on_disconnect()` multiple times Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Call `on_disconnect` with closed server Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
Alexandru Vasile authored
* http: Add inner server data structure Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Handle RPC messages Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Implement equivalent of `service_fn` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Implement equivalent of `make_service_fn` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Expose `tower` compatible service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Prebuild http server with optional listener Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: WIP tower service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Ensure service works with tower Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Remove `RPSeeServerMakeSvc` to allow further flexibility Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Resubmit the same request for testing Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Transform builder into service directly Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Rename `RPSeeServerSvc` into user friendly `TowerService` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Rely on internal TowerService to handle requests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix middleware typo Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Improve API builder for tower service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename the inner service data and check comments Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add comments Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Receive tower service builder as param Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Adjust tower_http example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Add tower middleware on the HttpBuilder Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Do not expose the internal `TowerService` for now Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update http-server/src/server.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * http-server: Use `std::error::Error` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix fmt Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Remove header and CORS validation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * core: Remove CORS logic Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add custom CORS layer to the RPC Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * address some grumbles * fix more grumbles: no more Infallible * make clippy happy * Rename tower http example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Remove handling of OPTIONS request Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Test CORS with external layers Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Document access control and external CORS layer Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Remove unused deps Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * remove unused CORS code * Remove extra lifetime param Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `invalid_allow_origin` to `origin_rejected` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update core/src/server/access_control/origin.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Rename `AnyNonNull` to `Wildcard` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename `OriginType` to `Origin` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
Niklas Adolfsson authored
-
- 15 Aug, 2022 1 commit
-
-
Niklas Adolfsson authored
* fix(jsonrpsee): less deps when defining RPC API. * address grumbles * fix missing macros feature in full
-
- 12 Aug, 2022 3 commits
-
-
Niklas Adolfsson authored
* fix(client): adjust TransportSenderT This is trait contains `WebSocket` specific details and it's difficult to fix it properly with an extension trait in the current design. So this PR documents and marks it clearly that these methods are optional to implement, kind of ugly but better. * fix build * Update core/src/client/mod.rs Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * Update core/src/client/mod.rs Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> * increase margin for failing test * Update core/src/client/mod.rs Co-authored-by:
James Wilson <james@jsdw.me> * remove optional prefix in trait Co-authored-by:
Alexandru Vasile <60601340+lexnv@users.noreply.github.com> Co-authored-by:
James Wilson <james@jsdw.me>
-
Alexandru Vasile authored
* http: Add inner server data structure Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Handle RPC messages Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Implement equivalent of `service_fn` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Implement equivalent of `make_service_fn` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Expose `tower` compatible service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Prebuild http server with optional listener Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: WIP tower service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Ensure service works with tower Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Remove `RPSeeServerMakeSvc` to allow further flexibility Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Fix warnings Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tower_http: Resubmit the same request for testing Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Transform builder into service directly Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Rename `RPSeeServerSvc` into user friendly `TowerService` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Rely on internal TowerService to handle requests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix middleware typo Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Improve API builder for tower service Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename the inner service data and check comments Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Add comments Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Receive tower service builder as param Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * examples: Adjust tower_http example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Add tower middleware on the HttpBuilder Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-server: Do not expose the internal `TowerService` for now Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update http-server/src/server.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * http-server: Use `std::error::Error` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix fmt Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * address some grumbles * fix more grumbles: no more Infallible * make clippy happy * Rename tower http example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update http-server/src/server.rs * Update http-server/src/server.rs * Update http-server/src/server.rs * Update http-server/src/server.rs Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
mwtian authored
* add len() to Params * Rename to `len_bytes()` Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update comment. Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update types/src/params.rs * Update types/src/params.rs * Update types/src/params.rs * Update types/src/params.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 11 Aug, 2022 2 commits
-
-
Alexandru Vasile authored
* Fix cargo clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * ci: Deny clippy warning Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Replace clippy by `clippy-check` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
Alexandru Vasile authored
* bench: Expose headers for http clients Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * bench: Add bench for custom HTTP headers Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * bench: Add bench for WS handshakes Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix clippy Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * bench: Use KIB instead of `1 * KiB` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tweak http headers size Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 08 Aug, 2022 1 commit
-
-
dependabot[bot] authored
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 1.4.0 to 2.0.0. - [Release notes](https://github.com/Swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](https://github.com/Swatinem/rust-cache/compare/v1.4.0...v2.0.0 ) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 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
-
- 18 Jul, 2022 1 commit
-
-
Niklas Adolfsson authored
-
- 14 Jul, 2022 1 commit
-
-
Bill authored
-
- 13 Jul, 2022 1 commit
-
-
Alexandru Vasile authored
* ws-client: Replace `httparse::Header` with `http::HeaderMap` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * ws-client: Make headers optional Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Expose custom header injection Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Adjust testing for custom headers Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Make `http::HeaderMap` non-optional Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Cache request headers Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix doc tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Use `into_iter` for headers Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * docs: Improve custom headers documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http: Use `hyper::http` instead of `http` directly Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * http-client: Adjust testing Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Fix doc tests Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * client: Expose `http::HeaderMap` and `http::HeaderValue` Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
- 06 Jul, 2022 3 commits
-
-
Niklas Adolfsson authored
-
Alexandru Vasile authored
* ws-server: Handle `soketto::Incoming::Closed` frames Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Change `warn` -> `debug` for dropped connections Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * ws-server: Remove closed reason log Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Update ws-server/src/server.rs Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
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
-
- 04 Jul, 2022 1 commit
-
-
Alexandru Vasile authored
* Parse user defined client_bounds and server_bounds Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Use custom user defined bounds if provided Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add provided where clause to the custom bounds Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add proc_macro with bounds example Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Check against client_bounds wihtout client implementation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Add ui test for empty bounds Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Add ui test to check bounds without implementation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Add bounds documentation Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * rpc_macro: Remove `WherePredicate` from parsing Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * ui: Add test that compiles Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * Rename rendered `T` to avoid collision with user provided generic Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io> * tests: Modify UI correct rpc_bounds test to call server's methods Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
- 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>
-
- 27 Jun, 2022 1 commit
-
-
dependabot[bot] authored
Updates the requirements on [pprof](https://github.com/tikv/pprof-rs) to permit the latest version. - [Release notes](https://github.com/tikv/pprof-rs/releases) - [Changelog](https://github.com/tikv/pprof-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/tikv/pprof-rs/compare/v0.9.1...v0.10.0 ) --- updated-dependencies: - dependency-name: pprof dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 24 Jun, 2022 1 commit
-
-
James Wilson authored
Just a small readme tweak
-
- 23 Jun, 2022 1 commit
-
-
Artem Vorotnikov authored
-
- 22 Jun, 2022 2 commits
-
-
tgmichel authored
* Remove `deny_unknown_fields` * Update invalid request tests * Remove `is_not_request_object` field from req in test * Remove `deny_unknown_fields` from `Response` * Add test to verify unknown field results in valid request
-
Alexandru Vasile authored
Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
-
- 21 Jun, 2022 1 commit
-
-
Niklas Adolfsson authored
To include the bugfix for `tracing::enabled!` when `log` is enabled. Follow up on #722
-