Repository navigation
Commit 453d057
committed
fix(relay): format the new import, and bound the mint wait
Two review findings from Greptile on the contributed change, neither about the
fix itself:
- `cargo fmt --all --check` failed: `use tokio::sync::Notify` sat inside the
futures import group, before the `nostream_config` block, so the required
format step would have stopped the checks before the test ran.
- `create_started().await` had no deadline, so a handler that panicked before
minting would hang the test instead of failing it. The wait is now wrapped in
a five-second timeout with a message that says which wait expired.
`cargo fmt --all --check` is clean, and
`cargo test -p nostream-relay --test handlers a_close_during_the_invite_mint`
passes.1 parent a178e9c commit 453d057
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
1266 | | - | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
1267 | 1269 | | |
1268 | 1270 | | |
1269 | 1271 | | |
| |||
0 commit comments