Commit 2875c7b
committed
fix: wrap blocking_lock in block_in_place to prevent async runtime panic
The cookie helper functions use blocking_lock() which panics when called
from within a tokio async runtime. This was causing the gateway to crash
on startup when web tools tried to access the vault cookie jar.
Wrapping in tokio::task::block_in_place() allows the blocking operation
to safely execute within the multi-threaded runtime by temporarily
leaving the async context.1 parent 5816182 commit 2875c7b
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
596 | 599 | | |
597 | 600 | | |
598 | 601 | | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
604 | 609 | | |
605 | 610 | | |
606 | 611 | | |
607 | 612 | | |
608 | | - | |
609 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
610 | 617 | | |
611 | 618 | | |
612 | 619 | | |
| |||
0 commit comments