Skip to content

Commit

Permalink
use native tls for twilight-gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
circuitsacul committed Sep 15, 2023
1 parent 0760b68 commit 6f64510
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
12 changes: 4 additions & 8 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
twilight-gateway = "0.15.2"
twilight-gateway = { version = "0.15.2", default-features=false, features = [ "native", "twilight-http", "zlib-stock" ] }
twilight-http = "0.15.2"
twilight-model = "0.15.2"
twilight-validate = "0.15.1"
Expand Down
1 change: 1 addition & 0 deletions src/client/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub async fn run(bot: StarboardBot) {
Ok(event) => event,
Err(why) => {
let fatal = why.is_fatal();
eprintln!("{}", shard.id());
bot.handle_error(&why.into()).await;

if fatal {
Expand Down

0 comments on commit 6f64510

Please sign in to comment.