1. Nov 07, 2022
    • Niklas Adolfsson's avatar
      [client]: improve batch request API (#910) · 824c3691
      Niklas Adolfsson authored
      * better handling of batch requests
      
      * add test for untagged enum
      
      * remove annoying trait bounds
      
      * cleanup
      
      * more clear comments
      
      * simplify batch request code
      
      * bring back old API + a new one
      
      * refactor batches to work with String IDs again
      
      * refactor again: single batch response API
      
      * fix tests + cleanup
      
      * fix doc links
      
      * address grumbles
      
      * BatchRequestBuilder: add iterator API for the batch
      
      * revert bench
      
      * fix benches build
      
      * address grumbles: ok and into_ok
      
      * fix some nits
      
      * fix nits
      824c3691
  2. Sep 16, 2022
    • Niklas Adolfsson's avatar
      fix(tracing): use tracing instrument macro (#846) · 1efd5aea
      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
      1efd5aea
  3. Sep 15, 2022
    • Niklas Adolfsson's avatar
      fix(http client): more user-friendly error messages when decoding fails (#853) · 94795309
      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
      94795309
  4. Sep 06, 2022
  5. Aug 11, 2022
  6. Jul 29, 2022
  7. Jul 13, 2022
  8. Jun 21, 2022
    • Niklas Adolfsson's avatar
      feat(logging): add `tracing span` per JSON-RPC call (#722) · 00c2ce65
      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
      00c2ce65
  9. May 03, 2022
  10. Apr 20, 2022
  11. Mar 30, 2022
  12. Mar 29, 2022
  13. Jan 21, 2022
    • Niklas Adolfsson's avatar
      feat(client): support request id as Strings. (#659) · 708d4213
      Niklas Adolfsson authored
      * feat(client): support request id as Strings.
      
      * add tests for Id::String
      
      * address grumbles: move id_kind to RequestManager
      
      * Update client/http-client/src/client.rs
      
      * types: take ref to `ID` get rid of some `Clone`
      
      * remove more clone
      
      * grumbles: rename tests
      708d4213
  14. Dec 22, 2021
  15. Dec 20, 2021
    • Niklas Adolfsson's avatar
      extract async client abstraction. (#580) · 292bd88a
      Niklas Adolfsson authored
      
      
      * extract ws client to async client
      
      * bring back jsonrpsee-ws-client crate
      
      * new crate core client
      
      * add missing file
      
      * jsonrpsee crate: add core client
      
      * rexport core client
      
      * more re-exports
      
      * downgrade trait bounds
      
      * update version
      
      * fix nits
      
      * send close reason
      
      * Update types/src/traits.rs
      
      * move 'TEN_MB_CONST' to core
      
      * Update client/core-client/Cargo.toml
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/core-client/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * cargo fmt
      
      * Update client/ws-client/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/ws-client/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * move `async-client` core
      
      The `async-client` is hidden behind a new feature flag `async-client`
      because it brings in additional dependecies such as tokio rt.
      
      * fix docs
      
      * add example how to use "core client"
      
      * fix build
      
      * Update http-server/Cargo.toml
      
      * Update client/transport/Cargo.toml
      
      Co-authored-by: default avatarDavid <[email protected]>
      292bd88a