Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: reintroduce generic substream in client rpc #3390

Merged
merged 2 commits into from
Sep 28, 2021

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 28, 2021

Description

Generic substream was removed in order to more closely test RPC/yamux
interaction but that was incorrect. The tests should have just been
updated without removing the generic + add new StreamId abstraction.
This PR reintroduces them so that an RPC client mock can more easily be created.

Motivation and Context

  • Decouple RPC client from yamux
  • Make mocking out RPC client easier

How Has This Been Tested?

Existing tests pass

Generic substream was removed in order to more closely test RPC/yamux
interaction but that was incorrect. The tests should have just been
updated without removing the generic. This PR reintroduces them so that
an RPC client mock can more easily be created.
@sdbondi sdbondi changed the base branch from development to tx-validation2 September 28, 2021 07:23
@sdbondi sdbondi changed the base branch from tx-validation2 to development September 28, 2021 07:23
@aviator-app aviator-app bot merged commit fa40741 into tari-project:development Sep 28, 2021
@sdbondi sdbondi deleted the comms-stream-id branch September 29, 2021 05:15
@sdbondi sdbondi restored the comms-stream-id branch February 3, 2022 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants