paritytech / paritytech/subxt

util-crate: Create WebSocket and HTTP rpc client

Open
#1,293 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
489
Forks
293
Avg merge
18h 35m
Merged PRs (30d)
3

Description

In a couple of places, namely CLI and lightClient builder, we duplicate the code for creating a WebSocket and HTTP RPC client.

Ideally, we could move the code to a dedicated util-crate and use that for both purposes.

Taken from: https://github.com/paritytech/subxt/pull/1278#discussion_r1406410869

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare the duplicated WebSocket and HTTP RPC client creation in the CLI and lightClient builder, using the linked discussion as context. Trace how both callers currently construct clients, then move the shared logic into a dedicated util-crate and update both callers to use it. Done means both purposes use the shared client implementation without duplicated construction code.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design, networking
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.