From ab945834fb0cde5d7fa35b5ab400bf55a24b46ae Mon Sep 17 00:00:00 2001 From: CookiePieWw Date: Fri, 20 Dec 2024 19:45:50 +0800 Subject: [PATCH] fix: fix ci --- src/meta-srv/src/bootstrap.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/meta-srv/src/bootstrap.rs b/src/meta-srv/src/bootstrap.rs index cdc9f579c2c2..3dfa03d66774 100644 --- a/src/meta-srv/src/bootstrap.rs +++ b/src/meta-srv/src/bootstrap.rs @@ -45,7 +45,9 @@ use tonic::codec::CompressionEncoding; use tonic::transport::server::{Router, TcpIncoming}; use crate::election::etcd::EtcdElection; -use crate::error::{InitExportMetricsTaskSnafu, InvalidArgumentsSnafu, TomlFormatSnafu}; +#[cfg(feature = "pg_kvbackend")] +use crate::error::InvalidArgumentsSnafu; +use crate::error::{InitExportMetricsTaskSnafu, TomlFormatSnafu}; use crate::metasrv::builder::MetasrvBuilder; use crate::metasrv::{BackendImpl, Metasrv, MetasrvOptions, SelectorRef}; use crate::selector::lease_based::LeaseBasedSelector;