Skip to content

Commit da2ef26

Browse files
committed
style(server): format shared service composition
1 parent 0764116 commit da2ef26

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

  • crates/apps/gfa-server/src

‎crates/apps/gfa-server/src/lib.rs‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,26 @@ async fn components(config: &Config) -> Result<Components, ServerError> {
141141
.with_observer(updates.clone())
142142
.with_opponents(opponents, Arc::new(workers::Workers::new(4))),
143143
);
144-
Ok(Components { store, updates, service })
144+
Ok(Components {
145+
store,
146+
updates,
147+
service,
148+
})
145149
}
146150

147151
async fn application(config: &Config, address: SocketAddr) -> Result<Application, ServerError> {
148-
let Components { store, updates, service } = components(config).await?;
152+
let Components {
153+
store,
154+
updates,
155+
service,
156+
} = components(config).await?;
149157
let router = gfa_http::local_router_with_updates(service.clone(), address, updates.clone())?;
150-
Ok(Application { router, store, updates, service })
158+
Ok(Application {
159+
router,
160+
store,
161+
updates,
162+
service,
163+
})
151164
}
152165

153166
/// Bind loopback, migrate the database, and serve until shutdown completes.

0 commit comments

Comments
 (0)