Commit f615cdb
authored
fix(es/plugin): use
**Description:**
#11267 introduced this mistake.
- `SHARED_RUNTIME.block_on(fut)` is enabled with`#[cfg(feature =
"plugin")]`
- `SHARED_RUNTIME` is enabled with `#[cfg(all(feature = "plugin",
not(feature = "manual-tokio-runtime")))]`
- If both features are enabled, the compiler goes failed.
The problem is that cfg! doesn't remove the code actually. `#[cfg]` is
needed here#[cfg] to avoid compilation error (#11316)1 parent f98ca27 commit f615cdb
2 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
101 | | - | |
102 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
0 commit comments