Skip to content

Commit a217bb9

Browse files
committed
fix: E0599 - no method named handle found for Result in health-check-api-server
error[E0599]: no method named `handle` found for enum `std::result::Result<T, E>` in the current scope --> packages/axum-health-check-api-server/src/server.rs:120:10 | 119 | let running = axum_server::from_tcp(socket) | ___________________- 120 | | .handle(handle) | |_________-^^^^^^ Added expect() to unwrap Result before calling handle() method since from_tcp now returns Result<Server, Error>.
1 parent ea00198 commit a217bb9

File tree

1 file changed

+1
-0
lines changed
  • packages/axum-health-check-api-server/src

1 file changed

+1
-0
lines changed

packages/axum-health-check-api-server/src/server.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub fn start(
117117
));
118118

119119
let running = axum_server::from_tcp(socket)
120+
.expect("Failed to create server from TCP socket")
120121
.handle(handle)
121122
.serve(router.into_make_service_with_connect_info::<SocketAddr>());
122123

0 commit comments

Comments
 (0)