From b776a15cb8f454238b51386f936ca373f86695c2 Mon Sep 17 00:00:00 2001 From: itsusinn Date: Thu, 5 Aug 2021 23:52:29 +0800 Subject: [PATCH] build: update nats version --- Cargo.toml | 5 ++--- src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fa16213..67370d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/main.rs b/src/main.rs index a2fdd3c..3b74275 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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} @@ -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