Skip to content

Commit 4edb080

Browse files
committed
Connect catch error result
1 parent 0dfd756 commit 4edb080

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/controller/definitions/epsilon_instance.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,7 @@ impl EpsilonInstance {
7070
let duration = Duration::from_millis(150);
7171

7272
Ok(timeout(duration, async move {
73-
config
74-
.connect()
75-
.await
76-
.unwrap()
77-
.status()
78-
.await
79-
.unwrap()
80-
.status
73+
config.connect().await?.status().await?.status
8174
})
8275
.await?)
8376
}

0 commit comments

Comments
 (0)