From 34de587e8e20e26ec0f89e8b182f955e88424348 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Sun, 12 Sep 2021 15:11:35 +0300 Subject: [PATCH] bump version --- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 1 + src/sync/reader.rs | 2 +- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10287821..eecc1dd2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.2.2 (2021-09-12) + +- Add exponential backoff for failing feeds ([#155](https://github.com/ayrat555/el_monitorro/pull/155)) +- Add admin stats (/info) commands ([#156](https://github.com/ayrat555/el_monitorro/pull/156), [#157](https://github.com/ayrat555/el_monitorro/pull/157)) +- Decrease docker image size ([#c93b02233bff](https://github.com/ayrat555/el_monitorro/commit/c93b02233bff8adeed77ffe32f2a5215006ac108)) + ## 0.2.1 (2021-09-08) - always update synced_at in feeds ([#154](https://github.com/ayrat555/el_monitorro/pull/154)) diff --git a/Cargo.lock b/Cargo.lock index a0d4354b..d440e9ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -418,7 +418,7 @@ checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" [[package]] name = "el_monitorro" -version = "0.2.1" +version = "0.2.2" dependencies = [ "atom_syndication 0.10.0", "chrono", diff --git a/Cargo.toml b/Cargo.toml index d934ce22..868da89f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "el_monitorro" -version = "0.2.1" +version = "0.2.2" authors = ["Ayrat Badykov "] edition = "2018" diff --git a/README.md b/README.md index 86f29f79..cc93a58c 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ All configuration is done through env variables | CLEAN_WORKERS_NUMBER | no | 1 | The number of workers to remove old data | | OWNER_TELEGRAM_ID | no | -- | If this value is set, the bot will process commands from the specified chat id | | REQUEST_TIMEOUT | no | 5 | Timeout in seconds for feed syncing requests | +| ADMIN_TELEGRAM_ID | no | -- | If this value is set, `/info` command with stats is available for ADMIN_TELEGRAM_ID | ### Using docker image diff --git a/src/sync/reader.rs b/src/sync/reader.rs index 78e18351..78e40eca 100644 --- a/src/sync/reader.rs +++ b/src/sync/reader.rs @@ -51,7 +51,7 @@ pub trait ReadFeed { pub fn read_url(url: &str) -> Result, FeedReaderError> { let client = match Request::get(url) .timeout(Duration::from_secs(request_timeout_seconds())) - .header("User-Agent", "el_monitorro/0.2.1") + .header("User-Agent", "el_monitorro/0.2.2") .redirect_policy(RedirectPolicy::Limit(10)) .body(()) {