aboutsummaryrefslogtreecommitdiff
path: root/src/client/context.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-21 17:00:41 -0700
committerZeyla Hellyer <[email protected]>2017-09-21 17:00:41 -0700
commite6a503409e374277683f76142eace62264ca533d (patch)
treefff8e976ead3be463d0e3817a3a4bbc3b7b439d3 /src/client/context.rs
parentFix a documentation typo (diff)
downloadserenity-e6a503409e374277683f76142eace62264ca533d.tar.xz
serenity-e6a503409e374277683f76142eace62264ca533d.zip
Remove tokio usage
Diffstat (limited to 'src/client/context.rs')
-rw-r--r--src/client/context.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/client/context.rs b/src/client/context.rs
index 614f79a..31eeca5 100644
--- a/src/client/context.rs
+++ b/src/client/context.rs
@@ -4,7 +4,6 @@ use typemap::ShareMap;
use gateway::Shard;
use model::*;
use parking_lot::Mutex;
-use tokio_core::reactor::Handle;
#[cfg(all(feature = "builder", feature = "cache"))]
use super::CACHE;
@@ -42,20 +41,16 @@ pub struct Context {
/// Note that if you are sharding, in relevant terms, this is the shard
/// which received the event being dispatched.
pub shard: Arc<Mutex<Shard>>,
- /// A tokio handle for spawning efficient tasks inside commands and events.
- pub handle: Handle,
}
impl Context {
/// Create a new Context to be passed to an event handler.
pub(crate) fn new(shard: Arc<Mutex<Shard>>,
- data: Arc<Mutex<ShareMap>>,
- handle: Handle)
+ data: Arc<Mutex<ShareMap>>)
-> Context {
Context {
data,
shard,
- handle,
}
}