async-graphql / examples

217 stars 54 forks source link

Must be called from the context of Tokio runtime #30

Closed ricardoalmeida closed 3 years ago

ricardoalmeida commented 3 years ago

Playing around examples/federation/gateway, I'm facing this issue when trying to start services federation-reviews, federation-accounts and federation-products

thread 'main' panicked at 'there is no reactor running, must be called from the context of Tokio runtime', /Users/ricardoalmeida/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.23/src/io/driver/mod.rs:204:14
sunli829 commented 3 years ago

This is due to Warp still using Tokio 0.2, when we've upgraded to Tokio 0.3. It should be fixed now, I just had to use tokio-compat-02.