Skip to content

Commit

Permalink
build: update nats version
Browse files Browse the repository at this point in the history
  • Loading branch information
itsusinn committed Aug 5, 2021
1 parent 572261d commit b776a15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ bytes = "1.0.1"

# webhook
warp = "0.3.0"
reqwest = { version = "0.11.4" ,default-features = false ,features = ["rustls","socks","rustls-tls-webpki-roots"] }
reqwest = { version = "0.11" ,default-features = false ,features = ["rustls","socks","rustls-tls-webpki-roots"] }

nats = "0.10.1"
async-nats = "0.10.1"
nats = "0.11.0"
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::env;
use std::sync::Arc;
use async_nats::Connection;
use nats::asynk::Connection;
use teloxide::{prelude::*, Bot};
use std::{
collections::{HashMap, HashSet}
Expand Down Expand Up @@ -38,7 +38,7 @@ async fn run() -> Result<(), anyhow::Error> {

log::info!("Mesagisto-Bot is starting up");

let opts = async_nats::Options::new();
let opts = nats::asynk::Options::new();

log::info!("Connecting to nats server");
let nc = opts
Expand Down

0 comments on commit b776a15

Please sign in to comment.