Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Oct 22, 2024
1 parent 5db8d7b commit 5020456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async fn main() -> Result<()> {
.wrap(from_fn(log::log))
.wrap(NormalizePath::trim())
.wrap(Compress::default())
.app_data(Data::new(pool.clone()))
.app_data(Data::from(pool.clone()))
.app_data(QueryConfig::default().error_handler(error::query_error_handler))
.service(
service("rpc").guard(actix_web::guard::Post()).finish(
Expand Down

0 comments on commit 5020456

Please sign in to comment.