Skip to content

Commit

Permalink
chore: release 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
itsusinn committed Nov 15, 2021
1 parent 9ba253b commit a66368f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "telegram-message-source"
version = "1.1.2"
version = "1.1.3"

authors = ["Itsusinn <itsusinn@foxmail.com>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion src/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::{ops::Deref, sync::Arc};

use crate::config::CONFIG;
use arcstr::ArcStr;
use mesagisto_client::{LateInit, cache::CACHE, net::NET, res::RES};
use mesagisto_client::{cache::CACHE, net::NET, res::RES, LateInit};
use teloxide::{adaptors::AutoSend, prelude::Requester, types::File as TgFile, Bot};

#[derive(Singleton, Default)]
Expand Down
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#![allow(incomplete_features)]
#![feature(backtrace, capture_disjoint_fields)]

use std::sync::Arc;
use futures::FutureExt;
use mesagisto_client::MesagistoConfig;
use std::sync::Arc;
use teloxide::{prelude::*, Bot};

use bot::TG_BOT;
Expand Down Expand Up @@ -75,7 +75,8 @@ async fn run() -> Result<(), anyhow::Error> {
.boxed()
})
.build()
.apply().await;
.apply()
.await;

log::info!("Mesagisto-Bot is starting up");
log::info!("Mesagisto-Bot正在启动");
Expand Down
5 changes: 3 additions & 2 deletions src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ pub fn client_from_config() -> reqwest::Client {
use crate::config::CONFIG;
let builder = default_reqwest_settings().use_rustls_tls();
if CONFIG.proxy.enable {
builder
.proxy(reqwest::Proxy::all(CONFIG.proxy.address.as_str()).expect("reqwest::Proxy creation failed"))
builder.proxy(
reqwest::Proxy::all(CONFIG.proxy.address.as_str()).expect("reqwest::Proxy creation failed"),
)
} else {
builder
}
Expand Down

0 comments on commit a66368f

Please sign in to comment.