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
This could be a simple mistake on my part or something counter-intuitive but looking at the function I should be able to just provide something simple like Box::new(Queue::new()). Except this doesn't work.
A bare bones example is importing dawn-gateway and only dawn-gateway like so dawn-gateway = { git = "https://github.com/dawn-rs/dawn" } then providing the built-in LocalQueue from dawn as a reproductive example.
use dawn_gateway::{Shard,ShardConfig, queue::LocalQueue};let token = env::var("DISCORD_TOKEN")?;let config = ShardConfig::builder(&token);
config.queue(Box::new(LocalQueue::new()));
Made the queue an Arc to make sure that all shards in a cluster use
the same queue.
Loosend a trait bound to make it easier to work with queues.
(fixestwilight-rs#101)
Also added a example with a very bad, but custom queue.
Signed-off-by: Valdemar Erk <valdemar@erk.io>
Made the queue an Arc to make sure that all shards in a cluster use
the same queue.
Loosend a trait bound to make it easier to work with queues.
(fixestwilight-rs#101)
Also added a example with a very bad, but custom queue.
Signed-off-by: Valdemar Erk <valdemar@erk.io>
Erk-
added a commit
to Erk-/twilight
that referenced
this issue
Feb 13, 2020
Made the queue an Arc to make sure that all shards in a cluster use
the same queue.
Loosend a trait bound to make it easier to work with queues.
(fixestwilight-rs#101)
Also added a example with a very bad, but custom queue.
Signed-off-by: Valdemar Erk <valdemar@erk.io>
Erk-
added a commit
to Erk-/twilight
that referenced
this issue
Feb 17, 2020
Made the queue an Arc to make sure that all shards in a cluster use
the same queue.
Loosend a trait bound to make it easier to work with queues.
(fixestwilight-rs#101)
Also added a example with a very bad, but custom queue.
Signed-off-by: Valdemar Erk <valdemar@erk.io>
This could be a simple mistake on my part or something counter-intuitive but looking at the function I should be able to just provide something simple like
Box::new(Queue::new())
. Except this doesn't work.A bare bones example is importing dawn-gateway and only dawn-gateway like so
dawn-gateway = { git = "https://github.com/dawn-rs/dawn" }
then providing the built-in LocalQueue from dawn as a reproductive example.I would assume this would work and be how it's performed as per this line doing this exact thing, just outside the function https://github.com/dawn-rs/dawn/blob/cc35c8532171ab1e02f7a5cf664599e50465107f/gateway/src/shard/config.rs#L105
The text was updated successfully, but these errors were encountered: