Skip to content

Commit 10c0897

Browse files
committed
ref: cargo fmt
1 parent 90b2652 commit 10c0897

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

crates/base/src/client/mod.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ use tonic::{
99
use tucana::{
1010
aquila::{
1111
RuntimeStatusUpdateRequest, runtime_status_service_client::RuntimeStatusServiceClient,
12-
}, shared::ModuleStatus,
12+
},
13+
shared::ModuleStatus,
1314
};
1415

1516
pub struct DracoRuntimeStatusService {
@@ -66,20 +67,12 @@ pub async fn create_channel_with_retry(channel_name: &str, url: String) -> Chann
6667
}
6768
}
6869
impl DracoRuntimeStatusService {
69-
pub async fn from_url(
70-
aquila_url: String,
71-
aquila_token: String,
72-
identifier: String,
73-
) -> Self {
70+
pub async fn from_url(aquila_url: String, aquila_token: String, identifier: String) -> Self {
7471
let channel = create_channel_with_retry("Aquila", aquila_url).await;
7572
Self::new(channel, identifier, aquila_token)
7673
}
7774

78-
pub fn new(
79-
channel: Channel,
80-
identifier: String,
81-
aquila_token: String,
82-
) -> Self {
75+
pub fn new(channel: Channel, identifier: String, aquila_token: String) -> Self {
8376
DracoRuntimeStatusService {
8477
channel,
8578
identifier,

crates/base/src/runner.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{
2-
client::{DracoRuntimeStatusService},
2+
client::DracoRuntimeStatusService,
33
config::AdapterConfig,
44
store::AdapterStore,
55
traits::{LoadConfig, Server as AdapterServer},
@@ -55,10 +55,7 @@ impl<C: LoadConfig> ServerRunner<C> {
5555
})
5656
}
5757

58-
pub async fn serve(
59-
self,
60-
appendix: Vec<ModuleDefinitionAppendix>,
61-
) -> anyhow::Result<()> {
58+
pub async fn serve(self, appendix: Vec<ModuleDefinitionAppendix>) -> anyhow::Result<()> {
6259
let config = self.context.adapter_config.clone();
6360
let mut runtime_status_service: Option<Arc<DracoRuntimeStatusService>> = None;
6461
let mut runtime_status_heartbeat_task: Option<JoinHandle<()>> = None;

0 commit comments

Comments
 (0)