Skip to content

Commit 65a12d2

Browse files
committed
remove unused imports, mark unused arg
1 parent 6725625 commit 65a12d2

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

crates/configuration/src/configuration.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
//! Configuration for the connector.
22
3-
use std::collections::BTreeMap;
4-
use std::path::Path;
5-
6-
use query_engine_metadata::metadata;
7-
use sqlx::postgres::PgConnectOptions;
8-
93
use crate::connect::SslInfo;
104
use crate::environment::Environment;
115
use crate::error::{
@@ -17,7 +11,10 @@ use crate::version3;
1711
use crate::version4;
1812
use crate::version5;
1913
use crate::VersionTag;
14+
use query_engine_metadata::metadata;
2015
use schemars::{gen::SchemaSettings, schema::RootSchema};
16+
use std::collections::BTreeMap;
17+
use std::path::Path;
2118

2219
pub fn generate_latest_schema() -> RootSchema {
2320
SchemaSettings::openapi3()

crates/connectors/ndc-postgres/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ impl<T> From<std::sync::PoisonError<T>> for LockError {
452452
/// Create a connection pool and wrap it inside a connector State.
453453
pub async fn create_state(
454454
connection_settings: &ConnectionSettings,
455-
environment: &impl Environment,
455+
_environment: &impl Environment,
456456
pool_settings: &PoolSettings,
457457
metrics_registry: &mut prometheus::Registry,
458458
version_tag: ndc_postgres_configuration::VersionTag,

crates/query-engine/execution/src/metrics.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
//! Metrics setup and update for our connector.
22
3-
use std::time::Duration;
4-
5-
use prometheus::{
6-
Gauge, GaugeVec, Histogram, HistogramTimer, IntCounter, IntGauge, IntGaugeVec, Registry,
7-
};
8-
use sqlx::database;
9-
103
use crate::database_info::DatabaseInfo;
4+
use prometheus::{GaugeVec, Histogram, HistogramTimer, IntCounter, IntGaugeVec, Registry};
5+
use std::time::Duration;
116

127
/// The collection of all metrics exposed through the `/metrics` endpoint.
138
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)