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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user