aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-24 16:14:12 -0700
committerZeyla Hellyer <[email protected]>2017-09-24 16:14:12 -0700
commit5aaca63f9b2974f312e68adf6cb18bdadbdbb148 (patch)
treeb261633008490455f4ffc28ac4e55e2c82b3635a /src/client
parentAdd a shard manager (diff)
downloadserenity-5aaca63f9b2974f312e68adf6cb18bdadbdbb148.tar.xz
serenity-5aaca63f9b2974f312e68adf6cb18bdadbdbb148.zip
Fix tests and example 05
Diffstat (limited to 'src/client')
-rw-r--r--src/client/bridge/gateway/mod.rs1
-rw-r--r--src/client/bridge/gateway/shard_runner.rs4
2 files changed, 1 insertions, 4 deletions
diff --git a/src/client/bridge/gateway/mod.rs b/src/client/bridge/gateway/mod.rs
index 0bfd4e6..24170e0 100644
--- a/src/client/bridge/gateway/mod.rs
+++ b/src/client/bridge/gateway/mod.rs
@@ -19,6 +19,7 @@ type LockedShard = Parked<Shard>;
pub enum ShardManagerMessage {
Restart(ShardId),
Shutdown(ShardId),
+ #[allow(dead_code)]
ShutdownAll,
}
diff --git a/src/client/bridge/gateway/shard_runner.rs b/src/client/bridge/gateway/shard_runner.rs
index 8bdbb35..4595247 100644
--- a/src/client/bridge/gateway/shard_runner.rs
+++ b/src/client/bridge/gateway/shard_runner.rs
@@ -12,10 +12,6 @@ use websocket::WebSocketError;
#[cfg(feature = "framework")]
use framework::Framework;
-enum EventRetrieval {
- Some()
-}
-
pub struct ShardRunner<H: EventHandler + 'static> {
data: Arc<ParkingLotMutex<ShareMap>>,
event_handler: Arc<H>,