Skip to content

Commit

Permalink
Refactor! Reduce Dependencies! More Concurrency!
Browse files Browse the repository at this point in the history
* Refactor - now clearer to read (probably)
* Dependency Reduction - use only the Tokio features we need
* More Concurrency - reactions are now handled concurrently, meaning
adding reaction and the dead command will no longer go ignored until
processing "the big ones" finish
  • Loading branch information
sam-kirby committed Jan 17, 2021
1 parent a86c88e commit 1eaf57f
Show file tree
Hide file tree
Showing 8 changed files with 624 additions and 624 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/target

config.toml
Config.toml
133 changes: 33 additions & 100 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ edition = "2018"

[dependencies]
futures = "0.3"
tokio-stream = "0.1"
toml = "0.5"
tracing = "0.1"
tracing-subscriber = "0.2"
twilight-cache-inmemory = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-command-parser = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-embed-builder = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-gateway = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-http = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-mention = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-model = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-standby = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-util = { git = "https://github.com/sam-kirby/twilight.git", branch = "fix-emoji-encoding" }
twilight-cache-inmemory = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-command-parser = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-embed-builder = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-gateway = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-http = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-mention = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-model = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-standby = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }
twilight-util = { git = "https://github.com/twilight-rs/twilight.git", branch = "trunk" }

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.tokio]
version = "1"
features = ["full"]
features = ["rt-multi-thread", "signal", "sync", "time"]
Loading

0 comments on commit 1eaf57f

Please sign in to comment.