style: run cargo fmt
This commit is contained in:
1 parent
2fbdffebf5
commit
5032b9434f
1 file changed
+10
-12
@@ -321,18 +321,16 @@ pub async fn test_connection(state: State<'_, Arc<AppState>>, config: Connection
|
|||||||
.await
|
.await
|
||||||
.map(|_| "Connection successful".to_string())
|
.map(|_| "Connection successful".to_string())
|
||||||
}
|
}
|
||||||
DatabaseType::SqlServer => {
|
DatabaseType::SqlServer => db::sqlserver::connect(
|
||||||
db::sqlserver::connect(
|
&host,
|
||||||
&host,
|
port,
|
||||||
port,
|
&config.username,
|
||||||
&config.username,
|
&config.password,
|
||||||
&config.password,
|
config.database.as_deref(),
|
||||||
config.database.as_deref(),
|
connect_timeout,
|
||||||
connect_timeout,
|
)
|
||||||
)
|
.await
|
||||||
.await
|
.map(|_| "Connection successful".to_string()),
|
||||||
.map(|_| "Connection successful".to_string())
|
|
||||||
}
|
|
||||||
DatabaseType::Elasticsearch => {
|
DatabaseType::Elasticsearch => {
|
||||||
let client = db::elasticsearch_driver::EsClient::new(
|
let client = db::elasticsearch_driver::EsClient::new(
|
||||||
&url,
|
&url,
|
||||||
|
|||||||
Reference in new issue
Block a user