Skip to content

Commit

Permalink
chore: update anemo
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Oct 17, 2022
1 parent bda852d commit a07c405
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ move-prover-boogie-backend = { git = "https://github.com/move-language/move", re
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "7c685a4b67680ef3e5d48117f4e2e3aef5c50526" }

# anemo dependencies
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" }
anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" }
anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8" }
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab" }
anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab" }
anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab" }

# Use the same workspace-hack across crates.
workspace-hack = { path = "crates/workspace-hack" }
4 changes: 2 additions & 2 deletions crates/sui-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ impl SuiNode {
let routes = anemo::Router::new();

let service = ServiceBuilder::new()
.layer(TraceLayer::new())
.layer(TraceLayer::new_for_server_errors())
.layer(CallbackLayer::new(MetricsMakeCallbackHandler::new(
Arc::new(inbound_network_metrics),
)))
.service(routes);

let outbound_layer = ServiceBuilder::new()
.layer(TraceLayer::new())
.layer(TraceLayer::new_for_client_and_server_errors())
.layer(CallbackLayer::new(MetricsMakeCallbackHandler::new(
Arc::new(outbound_network_metrics),
)))
Expand Down
10 changes: 5 additions & 5 deletions crates/workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ aes = { version = "0.8", default-features = false }
aes-gcm = { version = "0.10", features = ["aes", "alloc", "getrandom"] }
ahash = { version = "0.7", features = ["std"] }
aho-corasick = { version = "0.7", features = ["std"] }
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false }
anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false }
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false }
anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false }
ansi_term = { version = "0.12", default-features = false }
anyhow = { version = "1", features = ["backtrace", "std"] }
arc-swap = { version = "1", default-features = false, features = ["serde"] }
Expand Down Expand Up @@ -627,9 +627,9 @@ aes = { version = "0.8", default-features = false }
aes-gcm = { version = "0.10", features = ["aes", "alloc", "getrandom"] }
ahash = { version = "0.7", features = ["std"] }
aho-corasick = { version = "0.7", features = ["std"] }
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false }
anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false }
anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "57c4af7d6cdbf47633e6715bcd67d98f300e2fd8", default-features = false }
anemo = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false }
anemo-build = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false }
anemo-tower = { git = "https://github.com/mystenlabs/anemo.git", rev = "1b977fe20a615b7a7045f779f9aafa120389c2ab", default-features = false }
ansi_term = { version = "0.12", default-features = false }
anyhow = { version = "1", features = ["backtrace", "std"] }
arc-swap = { version = "1", default-features = false, features = ["serde"] }
Expand Down
4 changes: 2 additions & 2 deletions narwhal/primary/src/primary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,14 @@ impl Primary {
.add_rpc_service(worker_service);

let service = ServiceBuilder::new()
.layer(TraceLayer::new())
.layer(TraceLayer::new_for_server_errors())
.layer(CallbackLayer::new(MetricsMakeCallbackHandler::new(
inbound_network_metrics,
)))
.service(routes);

let outbound_layer = ServiceBuilder::new()
.layer(TraceLayer::new())
.layer(TraceLayer::new_for_client_and_server_errors())
.layer(CallbackLayer::new(MetricsMakeCallbackHandler::new(
outbound_network_metrics,
)))
Expand Down
4 changes: 2 additions & 2 deletions narwhal/worker/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ impl Worker {
.add_rpc_service(primary_service);

let service = ServiceBuilder::new()
.layer(TraceLayer::new())
.layer(TraceLayer::new_for_server_errors())
.layer(CallbackLayer::new(MetricsMakeCallbackHandler::new(
inbound_network_metrics,
)))
.service(routes);

let outbound_layer = ServiceBuilder::new()
.layer(TraceLayer::new())
.layer(TraceLayer::new_for_client_and_server_errors())
.layer(CallbackLayer::new(MetricsMakeCallbackHandler::new(
outbound_network_metrics,
)))
Expand Down

0 comments on commit a07c405

Please sign in to comment.