aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-12-16 21:26:54 -0800
committerAustin Hellyer <[email protected]>2016-12-16 21:26:54 -0800
commit7b45f16f063a47dc8a302dce5b016cf43a3edcc1 (patch)
tree42586d38945cdbe1583dee4ea59d47060e86e61f /src/client
parentSimplify gateway identify compression (diff)
downloadserenity-7b45f16f063a47dc8a302dce5b016cf43a3edcc1.tar.xz
serenity-7b45f16f063a47dc8a302dce5b016cf43a3edcc1.zip
Make 'voice' feature not require 'cache'
The voice module required the cache feature in order to access the current user's Id. Instead, just copy the Id into the VoiceManager and distribute it from there -- the memory impact will be very minimal in comparison to the benefits of not needing to constantly unlock the Cache and not needing the user to be forced to use the Cache.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/gateway/shard.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/gateway/shard.rs b/src/client/gateway/shard.rs
index c026f0c..bc2b813 100644
--- a/src/client/gateway/shard.rs
+++ b/src/client/gateway/shard.rs
@@ -149,7 +149,7 @@ impl Shard {
session_id: Some(ready.ready.session_id.clone()),
shard_info: shard_info,
ws_url: base_url.to_owned(),
- manager: VoiceManager::new(tx, ready.ready.user.id.0),
+ manager: VoiceManager::new(tx, ready.ready.user.id),
}
} else {
Shard {