Skip to content

Commit

Permalink
fix(server): Enable the streebog feature by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mxxntype committed May 23, 2024
1 parent 1e78d5f commit 79e5d24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
GOST = "GOST"
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ uuid = { version = "1.8.0", features = ["v4"] }
tonic-build = "0.11"

[features]
# default = ["streebog"]
default = ["streebog"]
streebog = ["dep:streebog", "dep:hex"]

# `cargo-machete` reports this as unused, but it's absolutely used by `tonic` :)
Expand Down
2 changes: 1 addition & 1 deletion server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl TCPChat {
tracing::info!(message = "Starting server", ?addr);
Server::builder()
.tls_config(ServerTlsConfig::new().identity(identity))
.unwrap()
.expect("The TLS key or certificate is invalid!")
.trace_fn(|_| tracing::info_span!("server"))
.add_service(registry)
.add_service(chat)
Expand Down

0 comments on commit 79e5d24

Please sign in to comment.