Skip to content

Commit

Permalink
consensus: use sui-http for running the gRPC http server
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Jan 2, 2025
1 parent 14ae71d commit 37afb03
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 266 deletions.
5 changes: 1 addition & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ sui-graphql-rpc = { path = "crates/sui-graphql-rpc" }
sui-graphql-rpc-client = { path = "crates/sui-graphql-rpc-client" }
sui-graphql-rpc-headers = { path = "crates/sui-graphql-rpc-headers" }
sui-genesis-builder = { path = "crates/sui-genesis-builder" }
sui-http = { path = "crates/sui-http" }
sui-indexer = { path = "crates/sui-indexer" }
sui-indexer-alt-framework = { path = "crates/sui-indexer-alt-framework" }
sui-indexer-alt-jsonrpc = { path = "crates/sui-indexer-alt-jsonrpc" }
Expand Down
5 changes: 1 addition & 4 deletions consensus/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ enum_dispatch.workspace = true
fastcrypto.workspace = true
futures.workspace = true
http.workspace = true
hyper.workspace = true
hyper-util.workspace = true
hyper-rustls.workspace = true
itertools.workspace = true
quinn-proto.workspace = true
mockall.workspace = true
Expand All @@ -49,7 +46,6 @@ sui-tls.workspace = true
tap.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-rustls.workspace = true
tokio-stream.workspace = true
tokio-util.workspace = true
tonic.workspace = true
Expand All @@ -58,6 +54,7 @@ tower-http.workspace = true
tracing.workspace = true
typed-store.workspace = true
tonic-rustls.workspace = true
sui-http.workspace = true

[dev-dependencies]
rstest.workspace = true
Expand Down
3 changes: 0 additions & 3 deletions consensus/core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ pub(crate) enum ConsensusError {
#[error("Failed to connect as client: {0:?}")]
NetworkClientConnection(String),

#[error("Failed to connect as server: {0:?}")]
NetworkServerConnection(String),

#[error("Failed to send request: {0:?}")]
NetworkRequest(String),

Expand Down
Loading

0 comments on commit 37afb03

Please sign in to comment.