Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
just-in-chang committed Oct 22, 2024
1 parent 0500aa6 commit 1403e47
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,9 @@ impl AssetUploaderWorkerContext {

impl Server for AssetUploaderWorkerContext {
fn build_router(&self) -> Router {
let self_arc = Arc::new(self.clone());
Router::new()
.route("/", post(Self::handle_upload))
.layer(Extension(self_arc.clone()))
.layer(Extension(Arc::new(self.clone())))
}
}

Expand Down

0 comments on commit 1403e47

Please sign in to comment.