You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know whether this is expected behavior. It definitely could be the case that this library actively relies on tokio fixtures or something. However, the failure (in my opinion) could be reported more cleanly.
As it is, if I change examples/pubsub.rs to use .wait().unwrap() instead of tokio::run(...), I get
This led me down a rather annoying rabbit-hole, unfortunately, as the issue was with the event-loop rather than with networking which is implied by ConnectionFailed.
The text was updated successfully, but these errors were encountered:
which is lightly adapted from examples/realistic.rs and I believe should do the same thing.
Again, not really a "bug" because if you need tokio, you need tokio, but the error message itself is problematic in my opinion.
rivertam
changed the title
PubSub connection cannot be established when using .wait (but works when using tokio::run)
Connection cannot be established when using .wait (but works when using tokio::run)
Jul 28, 2019
I don't know whether this is expected behavior. It definitely could be the case that this library actively relies on tokio fixtures or something. However, the failure (in my opinion) could be reported more cleanly.
As it is, if I change
examples/pubsub.rs
to use.wait().unwrap()
instead oftokio::run(...)
, I getThis led me down a rather annoying rabbit-hole, unfortunately, as the issue was with the event-loop rather than with networking which is implied by
ConnectionFailed
.The text was updated successfully, but these errors were encountered: