Commit 74eb894
Fix
### What problem does this PR solve?
Fix RuntimeError when calling mindmap endpoint by converting
`gen_mindmap()` to async function and using `await` instead of
`asyncio.run()`.
### Type of change
- [ ] Bug Fix (non-breaking change which fixes an issue)
---------
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>RuntimeError: asyncio.run() cannot be called from a running event loop when calling mindmap endpoint. (#11880)1 parent 34d29d7 commit 74eb894
2 files changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
887 | 886 | | |
888 | 887 | | |
889 | 888 | | |
890 | | - | |
| 889 | + | |
891 | 890 | | |
892 | 891 | | |
893 | 892 | | |
| |||
931 | 930 | | |
932 | 931 | | |
933 | 932 | | |
934 | | - | |
| 933 | + | |
935 | 934 | | |
0 commit comments