Gateway: Move from RwLock<HashMap> to DashMap

Moves to the faster dashmap in the Songbird management struct, as the final v4 brought back the `entry` API that I was needing to use it safely.

Also handles some new clippy lints.
This commit is contained in:
Kyle Simpson
2021-01-26 14:23:07 +00:00
parent 658fd830c1
commit a0e905a83f
3 changed files with 15 additions and 11 deletions

View File

@@ -36,6 +36,10 @@ version = "0.2"
optional = true
version = "1"
[dependencies.dashmap]
optional = true
version = "4"
[dependencies.discortp]
features = ["discord-full"]
optional = true
@@ -117,6 +121,7 @@ default = [
"gateway",
]
gateway = [
"dashmap",
"flume",
"parking_lot",
"tokio/sync",