Skip to content

Commit

Permalink
use serenity 0.9.0-rc.0, fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
Geobert Quach committed Aug 12, 2020
1 parent 19adef8 commit 6584135
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
25 changes: 7 additions & 18 deletions Cargo.lock

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

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ once_cell = "1.4.0"
ron = "0.6.0"
serde = { version = "1.0.114", features = ["serde_derive"] }
futures = "0.3.5"

[dependencies.serenity]
git = "https://github.com/acdenisSK/serenity"
rev = "8c8a172e7f19ed792440547c7ef99d15aadb3938"
serenity = "0.9.0-rc.0"
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ async fn main() {

#[cfg(unix)]
let handle_sigterm = async {
let mut stream = signal(SignalKind::sigterm());
let mut stream = signal(SignalKind::terminate()).expect("Error on getting sigterm stream");
stream.recv().await;
println!("Stoping…");
alias::save_all();
Expand Down

0 comments on commit 6584135

Please sign in to comment.