diff --git a/backend/spi/spi-stats/Cargo.toml b/backend/spi/spi-stats/Cargo.toml index dc539df36..1ab6f519e 100644 --- a/backend/spi/spi-stats/Cargo.toml +++ b/backend/spi/spi-stats/Cargo.toml @@ -27,7 +27,7 @@ tardis = { workspace = true, features = ["reldb-postgres", "web-server"] } serde_json = { workspace = true, features = ["preserve_order"] } strum = { workspace = true, features = ["derive"] } bios-sdk-invoke = { version = "0.2.0", path = "../../../frontend/sdks/invoke", features = [ - "event", + "event","spi_log" ], default-features = false } [dev-dependencies] diff --git a/backend/spi/spi-stats/src/event.rs b/backend/spi/spi-stats/src/event.rs index 914a560f6..692340074 100644 --- a/backend/spi/spi-stats/src/event.rs +++ b/backend/spi/spi-stats/src/event.rs @@ -1,10 +1,10 @@ use crate::{ get_tardis_inst, - serv::{self, stats_record_serv}, + serv::{stats_record_serv}, }; use bios_sdk_invoke::clients::{ event_client::{get_topic, mq_error, ContextHandler, SPI_RPC_TOPIC}, - spi_log_client::{LogItemAddV2Req, StatsItemAddReq, StatsItemDeleteReq}, + spi_log_client::{StatsItemAddReq, StatsItemDeleteReq}, }; use tardis::{ basic::{dto::TardisContext, result::TardisResult}, diff --git a/backend/spi/spi-stats/src/serv/stats_sync_serv.rs b/backend/spi/spi-stats/src/serv/stats_sync_serv.rs index 4ef827836..afe060a8b 100644 --- a/backend/spi/spi-stats/src/serv/stats_sync_serv.rs +++ b/backend/spi/spi-stats/src/serv/stats_sync_serv.rs @@ -14,12 +14,12 @@ spi_dispatch_service! { @init: stats_initializer::init_fun, @dispatch: { #[cfg(feature = "spi-pg")] - spi_constants::SPI_PG_KIND_CODE => pg::stats_pg_record_serv, + spi_constants::SPI_PG_KIND_CODE => pg::stats_pg_sync_serv, }, @method: { fact_record_sync(fact_key: &str) -> TardisResult<()>; fact_col_record_sync(fact_key: &str, col_key: &str) -> TardisResult<()>; - db_config_add(add_req: StatsSyncDbConfigAddReq) -> TardisResult<()>; + db_config_add(add_req: StatsSyncDbConfigAddReq) -> TardisResult; db_config_modify(modify_req: StatsSyncDbConfigModifyReq) -> TardisResult<()>; db_config_list() -> TardisResult>; }