Skip to content

Commit ea77308

Browse files
committed
Remove remaining traces of anyhow in core hotfix crate
1 parent f8446fc commit ea77308

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ rustls = "0.23"
4848
rustls-native-certs = "0.8"
4949
rustls-pemfile = "2.2"
5050
rustls-pki-types = { version = "1" }
51-
webpki-roots = "1.0"
51+
rcgen = "0.13"
5252
serde = "^1.0.177"
5353
serde_json = "1.0.143"
5454
smartstring = "1"
5555
strum = "0.27"
5656
strum_macros = "0.27"
5757
syn = "2"
58+
tempfile = "3"
5859
testcontainers = "0.25"
5960
thiserror = "2"
6061
tokio = { version = "1" }
@@ -65,6 +66,7 @@ tower = "0.5"
6566
tracing = "0.1"
6667
tracing-subscriber = "0.3"
6768
uuid = { version = "1.5.0" }
69+
webpki-roots = "1.0"
6870
wiremock = "0.6"
6971

7072
[workspace.lints.rust]

crates/hotfix-web/src/session_controller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub struct HttpSessionController<Outbound> {
1818
#[async_trait::async_trait]
1919
impl<Outbound: OutboundMessage> SessionController for HttpSessionController<Outbound> {
2020
async fn get_session_info(&self) -> anyhow::Result<SessionInfo> {
21-
self.session_handle.get_session_info().await
21+
Ok(self.session_handle.get_session_info().await?)
2222
}
2323

2424
async fn request_reset_on_next_logon(&self) -> anyhow::Result<()> {

crates/hotfix/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ hotfix-message = { version = "0.3.0", path = "../hotfix-message", features = ["u
2525
hotfix-store = { version = "0.1.1", path = "../hotfix-store" }
2626
hotfix-store-mongodb = { version = "0.1.3", path = "../hotfix-store-mongodb", optional = true }
2727

28-
anyhow = { workspace = true }
2928
async-trait = { workspace = true }
3029
chrono = { workspace = true, features = ["serde"] }
3130
chrono-tz = { workspace = true, features = ["serde"] }
@@ -44,7 +43,8 @@ tracing = { workspace = true }
4443
[dev-dependencies]
4544
hotfix-message = { version = "0.3.0", path = "../hotfix-message", features = ["fix44", "utils-chrono"] }
4645

47-
rcgen = "0.13"
46+
anyhow = { workspace = true }
47+
rcgen = { workspace = true }
4848
rustls = { workspace = true, features = ["ring"] }
49-
tempfile = "3"
49+
tempfile = { workspace = true }
5050
tokio = { workspace = true, features = ["test-util"] }

crates/hotfix/src/session/session_handle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub struct SessionHandle<Outbound> {
1717
}
1818

1919
impl<Outbound> SessionHandle<Outbound> {
20-
pub async fn get_session_info(&self) -> anyhow::Result<SessionInfo> {
20+
pub async fn get_session_info(&self) -> Result<SessionInfo, SendError> {
2121
let (sender, receiver) = oneshot::channel::<SessionInfo>();
2222
self.admin_request_sender
2323
.send(AdminRequest::RequestSessionInfo(sender))

0 commit comments

Comments
 (0)