From 0553d8710ebbbeaac55651efc9684c218f242833 Mon Sep 17 00:00:00 2001 From: kukabi Date: Tue, 25 Jun 2024 21:43:12 +0300 Subject: [PATCH] Fix an issue with kline updater metrics. Bump version. --- Cargo.lock | 54 +++++++++++------------ _docker/compose/.env.sample | 2 +- subvt-app-service/Cargo.toml | 2 +- subvt-block-processor/Cargo.toml | 2 +- subvt-config/Cargo.toml | 2 +- subvt-governance/Cargo.toml | 2 +- subvt-kline-updater/Cargo.toml | 2 +- subvt-kline-updater/src/lib.rs | 4 +- subvt-logging/Cargo.toml | 2 +- subvt-metrics/Cargo.toml | 2 +- subvt-network-status-server/Cargo.toml | 2 +- subvt-network-status-updater/Cargo.toml | 2 +- subvt-nft/Cargo.toml | 2 +- subvt-notification-generator/Cargo.toml | 2 +- subvt-notification-processor/Cargo.toml | 2 +- subvt-onekv-updater/Cargo.toml | 2 +- subvt-persistence/Cargo.toml | 2 +- subvt-plotter/Cargo.toml | 2 +- subvt-proc-macro/Cargo.toml | 2 +- subvt-referendum-updater/Cargo.toml | 2 +- subvt-report-service/Cargo.toml | 2 +- subvt-service-common/Cargo.toml | 2 +- subvt-substrate-client/Cargo.toml | 2 +- subvt-telegram-bot/Cargo.toml | 2 +- subvt-telemetry-processor/Cargo.toml | 2 +- subvt-types/Cargo.toml | 2 +- subvt-utility/Cargo.toml | 2 +- subvt-validator-details-server/Cargo.toml | 2 +- subvt-validator-list-server/Cargo.toml | 2 +- subvt-validator-list-updater/Cargo.toml | 2 +- 30 files changed, 57 insertions(+), 57 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b7520144..620fb82f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7697,7 +7697,7 @@ checksum = "0d0208408ba0c3df17ed26eb06992cb1a1268d41b2c0e12e65203fbe3972cee5" [[package]] name = "subvt-app-service" -version = "0.20.3" +version = "0.20.4" dependencies = [ "actix-http", "actix-rt", @@ -7726,7 +7726,7 @@ dependencies = [ [[package]] name = "subvt-block-processor" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-lock", @@ -7752,7 +7752,7 @@ dependencies = [ [[package]] name = "subvt-config" -version = "0.20.3" +version = "0.20.4" dependencies = [ "config", "serde", @@ -7760,7 +7760,7 @@ dependencies = [ [[package]] name = "subvt-governance" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "lazy_static", @@ -7774,7 +7774,7 @@ dependencies = [ [[package]] name = "subvt-kline-updater" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-trait", @@ -7797,7 +7797,7 @@ dependencies = [ [[package]] name = "subvt-logging" -version = "0.20.3" +version = "0.20.4" dependencies = [ "env_logger", "log", @@ -7806,7 +7806,7 @@ dependencies = [ [[package]] name = "subvt-metrics" -version = "0.20.3" +version = "0.20.4" dependencies = [ "env_logger", "log", @@ -7820,7 +7820,7 @@ dependencies = [ [[package]] name = "subvt-network-status-server" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-trait", @@ -7845,7 +7845,7 @@ dependencies = [ [[package]] name = "subvt-network-status-updater" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-trait", @@ -7867,7 +7867,7 @@ dependencies = [ [[package]] name = "subvt-nft" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "lazy_static", @@ -7879,7 +7879,7 @@ dependencies = [ [[package]] name = "subvt-notification-generator" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-lock", @@ -7906,7 +7906,7 @@ dependencies = [ [[package]] name = "subvt-notification-processor" -version = "0.20.3" +version = "0.20.4" dependencies = [ "a2", "anyhow", @@ -7941,7 +7941,7 @@ dependencies = [ [[package]] name = "subvt-onekv-updater" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-trait", @@ -7963,7 +7963,7 @@ dependencies = [ [[package]] name = "subvt-persistence" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "chrono", @@ -7982,7 +7982,7 @@ dependencies = [ [[package]] name = "subvt-plotter" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "chrono", @@ -8005,7 +8005,7 @@ dependencies = [ [[package]] name = "subvt-proc-macro" -version = "0.20.3" +version = "0.20.4" dependencies = [ "proc-macro2", "quote", @@ -8014,7 +8014,7 @@ dependencies = [ [[package]] name = "subvt-referendum-updater" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-trait", @@ -8038,7 +8038,7 @@ dependencies = [ [[package]] name = "subvt-report-service" -version = "0.20.3" +version = "0.20.4" dependencies = [ "actix-web", "anyhow", @@ -8066,7 +8066,7 @@ dependencies = [ [[package]] name = "subvt-service-common" -version = "0.20.3" +version = "0.20.4" dependencies = [ "actix-web", "anyhow", @@ -8083,7 +8083,7 @@ dependencies = [ [[package]] name = "subvt-substrate-client" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-lock", @@ -8112,7 +8112,7 @@ dependencies = [ [[package]] name = "subvt-telegram-bot" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-recursion", @@ -8150,7 +8150,7 @@ dependencies = [ [[package]] name = "subvt-telemetry-processor" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-lock", @@ -8174,7 +8174,7 @@ dependencies = [ [[package]] name = "subvt-types" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "chrono", @@ -8216,7 +8216,7 @@ dependencies = [ [[package]] name = "subvt-utility" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "hex", @@ -8226,7 +8226,7 @@ dependencies = [ [[package]] name = "subvt-validator-details-server" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-trait", @@ -8250,7 +8250,7 @@ dependencies = [ [[package]] name = "subvt-validator-list-server" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-trait", @@ -8277,7 +8277,7 @@ dependencies = [ [[package]] name = "subvt-validator-list-updater" -version = "0.20.3" +version = "0.20.4" dependencies = [ "anyhow", "async-lock", diff --git a/_docker/compose/.env.sample b/_docker/compose/.env.sample index 15bb7c2e..d6c3fcd0 100644 --- a/_docker/compose/.env.sample +++ b/_docker/compose/.env.sample @@ -1,4 +1,4 @@ -VERSION=0.20.3 +VERSION=0.20.4 ENV=production LOG_LEVEL=debug diff --git a/subvt-app-service/Cargo.toml b/subvt-app-service/Cargo.toml index 206e38c4..223aab6d 100644 --- a/subvt-app-service/Cargo.toml +++ b/subvt-app-service/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-app-service" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-block-processor/Cargo.toml b/subvt-block-processor/Cargo.toml index 5cca6d72..2640a9a7 100644 --- a/subvt-block-processor/Cargo.toml +++ b/subvt-block-processor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-block-processor" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-config/Cargo.toml b/subvt-config/Cargo.toml index a3455902..a256eead 100644 --- a/subvt-config/Cargo.toml +++ b/subvt-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-config" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-governance/Cargo.toml b/subvt-governance/Cargo.toml index 9acb79b0..0097881f 100644 --- a/subvt-governance/Cargo.toml +++ b/subvt-governance/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-governance" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-kline-updater/Cargo.toml b/subvt-kline-updater/Cargo.toml index 5cbd2d8b..d1291c36 100644 --- a/subvt-kline-updater/Cargo.toml +++ b/subvt-kline-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-kline-updater" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-kline-updater/src/lib.rs b/subvt-kline-updater/src/lib.rs index 1a000a3a..c54f143f 100644 --- a/subvt-kline-updater/src/lib.rs +++ b/subvt-kline-updater/src/lib.rs @@ -142,9 +142,9 @@ impl Service for KLineUpdater { // delete temp files let _ = std::fs::remove_file(&zip_file_local_path); let _ = std::fs::remove_file(&csv_file_local_path); - // publish metrics - metrics::kline_count().set(postgres.get_kline_count().await? as i64); } + // publish metrics + metrics::kline_count().set(postgres.get_kline_count().await? as i64); // publish total count log::info!( "K-line updater completed. Will sleep for {} seconds", diff --git a/subvt-logging/Cargo.toml b/subvt-logging/Cargo.toml index e59f142d..509dcc85 100644 --- a/subvt-logging/Cargo.toml +++ b/subvt-logging/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-logging" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-metrics/Cargo.toml b/subvt-metrics/Cargo.toml index 2587d5ee..b5d08baa 100644 --- a/subvt-metrics/Cargo.toml +++ b/subvt-metrics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-metrics" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-network-status-server/Cargo.toml b/subvt-network-status-server/Cargo.toml index 3c5bc4e3..96ff23a5 100644 --- a/subvt-network-status-server/Cargo.toml +++ b/subvt-network-status-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-network-status-server" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-network-status-updater/Cargo.toml b/subvt-network-status-updater/Cargo.toml index 1b5d967d..8ecbc677 100644 --- a/subvt-network-status-updater/Cargo.toml +++ b/subvt-network-status-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-network-status-updater" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-nft/Cargo.toml b/subvt-nft/Cargo.toml index 00bfd98c..032ec23d 100644 --- a/subvt-nft/Cargo.toml +++ b/subvt-nft/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-nft" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-notification-generator/Cargo.toml b/subvt-notification-generator/Cargo.toml index ef13c2f0..e1263c49 100644 --- a/subvt-notification-generator/Cargo.toml +++ b/subvt-notification-generator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-notification-generator" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-notification-processor/Cargo.toml b/subvt-notification-processor/Cargo.toml index 009b59fe..8f9f52c6 100644 --- a/subvt-notification-processor/Cargo.toml +++ b/subvt-notification-processor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-notification-processor" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-onekv-updater/Cargo.toml b/subvt-onekv-updater/Cargo.toml index 9c346537..3a006e9a 100644 --- a/subvt-onekv-updater/Cargo.toml +++ b/subvt-onekv-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-onekv-updater" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-persistence/Cargo.toml b/subvt-persistence/Cargo.toml index f818ca1a..2d8db30e 100644 --- a/subvt-persistence/Cargo.toml +++ b/subvt-persistence/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-persistence" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-plotter/Cargo.toml b/subvt-plotter/Cargo.toml index 2463f14c..68aa5e24 100644 --- a/subvt-plotter/Cargo.toml +++ b/subvt-plotter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-plotter" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-proc-macro/Cargo.toml b/subvt-proc-macro/Cargo.toml index f55c58a8..ba6679f7 100644 --- a/subvt-proc-macro/Cargo.toml +++ b/subvt-proc-macro/Cargo.toml @@ -3,7 +3,7 @@ proc-macro = true [package] name = "subvt-proc-macro" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-referendum-updater/Cargo.toml b/subvt-referendum-updater/Cargo.toml index c6f96207..7b1a4e4c 100644 --- a/subvt-referendum-updater/Cargo.toml +++ b/subvt-referendum-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-referendum-updater" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-report-service/Cargo.toml b/subvt-report-service/Cargo.toml index 3bdbc00d..3be49e66 100644 --- a/subvt-report-service/Cargo.toml +++ b/subvt-report-service/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-report-service" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-service-common/Cargo.toml b/subvt-service-common/Cargo.toml index ba1ffa3d..bd05135c 100644 --- a/subvt-service-common/Cargo.toml +++ b/subvt-service-common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-service-common" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-substrate-client/Cargo.toml b/subvt-substrate-client/Cargo.toml index 9a820f6a..529b2269 100644 --- a/subvt-substrate-client/Cargo.toml +++ b/subvt-substrate-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-substrate-client" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-telegram-bot/Cargo.toml b/subvt-telegram-bot/Cargo.toml index dc56fa0e..ee0995ae 100644 --- a/subvt-telegram-bot/Cargo.toml +++ b/subvt-telegram-bot/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-telegram-bot" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-telemetry-processor/Cargo.toml b/subvt-telemetry-processor/Cargo.toml index 179b554a..3aa02810 100644 --- a/subvt-telemetry-processor/Cargo.toml +++ b/subvt-telemetry-processor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-telemetry-processor" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-types/Cargo.toml b/subvt-types/Cargo.toml index 5b3e29a9..4533c7b1 100644 --- a/subvt-types/Cargo.toml +++ b/subvt-types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-types" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-utility/Cargo.toml b/subvt-utility/Cargo.toml index c19e1b26..4ff31dc9 100644 --- a/subvt-utility/Cargo.toml +++ b/subvt-utility/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-utility" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-validator-details-server/Cargo.toml b/subvt-validator-details-server/Cargo.toml index db269715..0cb97a0b 100644 --- a/subvt-validator-details-server/Cargo.toml +++ b/subvt-validator-details-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-validator-details-server" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-validator-list-server/Cargo.toml b/subvt-validator-list-server/Cargo.toml index 6cfc840b..326107a9 100644 --- a/subvt-validator-list-server/Cargo.toml +++ b/subvt-validator-list-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-validator-list-server" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0" diff --git a/subvt-validator-list-updater/Cargo.toml b/subvt-validator-list-updater/Cargo.toml index f70e78c5..96f993b0 100644 --- a/subvt-validator-list-updater/Cargo.toml +++ b/subvt-validator-list-updater/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "subvt-validator-list-updater" -version = "0.20.3" +version = "0.20.4" edition = "2021" rust-version = "1.67.0"