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

sui-http: Introduce crate to standardize how we start http services #20750

Merged
merged 12 commits into from
Jan 6, 2025
Merged
32 changes: 26 additions & 6 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ members = [
"crates/sui-graphql-rpc",
"crates/sui-graphql-rpc-client",
"crates/sui-graphql-rpc-headers",
"crates/sui-http",
"crates/sui-indexer",
"crates/sui-indexer-alt",
"crates/sui-indexer-alt-framework",
Expand Down Expand Up @@ -641,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
Loading