Skip to content

chore(bridge-withdrawer): pass GRPC and CometBFT clients to consumers directly#1510

Merged
ethanoroshiba merged 1 commit intomainfrom
ENG-661/single_GRPC_client
Sep 18, 2024
Merged

chore(bridge-withdrawer): pass GRPC and CometBFT clients to consumers directly#1510
ethanoroshiba merged 1 commit intomainfrom
ENG-661/single_GRPC_client

Conversation

@ethanoroshiba
Copy link
Copy Markdown

Summary

Changed sequencer_cometbft_client and sequencer_grpc_client construction so that each can be passed to consumers via cloning.

Background

Both clients were previously constructed ad-hoc from endpoints, which was unnecessary.

Changes

  • Moved construction of sequencer_cometbft_client and sequencer_grpc_client up so that each can be passed to its consumers (Startup and Submitter) via cloning.

Testing

Passing all tests

Related Issues

closes #1315

@ethanoroshiba ethanoroshiba marked this pull request as ready for review September 17, 2024 15:04
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner September 17, 2024 15:04
@ethanoroshiba ethanoroshiba requested a review from noot September 17, 2024 15:04
@ethanoroshiba ethanoroshiba added this pull request to the merge queue Sep 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 18, 2024
@ethanoroshiba ethanoroshiba added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit f7ef132 Sep 18, 2024
@ethanoroshiba ethanoroshiba deleted the ENG-661/single_GRPC_client branch September 18, 2024 17:43
.wrap_err("failed to parse sequencer bridge address")?;

let sequencer_grpc_connection =
tonic::transport::Endpoint::new(sequencer_grpc_endpoint)?.connect_lazy();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide an error context here.

steezeburger added a commit that referenced this pull request Sep 23, 2024
* main:
  feat(conductor): implement restart logic (#1463)
  fix: ignore `RUSTSEC-2024-0370` (#1483)
  fix, refactor(sequencer): refactor ics20 logic (#1495)
  fix(ci): use commit SHA instead of PR number preview-env images (#1501)
  chore(bridge-withdrawer): pass GRPC and CometBFT clients to consumers directly (#1510)
  fix(sequencer): Fix incorrect error message from BridgeUnlock actions (#1505)
  fix(bridge-contracts): fix memo transaction hash encoding (#1428)
  fix: build docker when workflow explicitly includes component (#1498)
  chore(sequencer): migrate from `anyhow::Result` to `eyre::Result` (#1387)
  fix(ci): typo for required field in sequencer preview-env (#1500)
  feat(ci): provide demo/preview environments (#1406)
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.

Have a single constructor for the sequencer gRPC client

3 participants