bug fixing and deploy and build diagnostics
This commit is contained in:
@@ -105,7 +105,7 @@ impl Server {
|
||||
let identity = Arc::new(identity);
|
||||
|
||||
// Create metrics store and spawn background collector
|
||||
let metrics_store = Arc::new(MetricsStore::with_data_dir(config.data_dir.clone()));
|
||||
let metrics_store = Arc::new(MetricsStore::with_data_dir(config.data_dir.clone()).await);
|
||||
let metrics_for_telemetry = metrics_store.clone();
|
||||
crate::monitoring::spawn_metrics_collector(metrics_store.clone(), Some(state_manager.clone()), Some(config.data_dir.clone()));
|
||||
|
||||
@@ -311,10 +311,6 @@ impl Server {
|
||||
})
|
||||
}
|
||||
|
||||
pub async fn serve(&self, addr: SocketAddr) -> Result<()> {
|
||||
self.serve_with_shutdown(addr, std::future::pending()).await
|
||||
}
|
||||
|
||||
/// Serve with a graceful shutdown signal.
|
||||
/// When the shutdown future completes, stop accepting new connections and drain in-flight requests.
|
||||
pub async fn serve_with_shutdown(
|
||||
|
||||
Reference in New Issue
Block a user