Skip to content

Commit

Permalink
fix: fixed data setup for actix web integration
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Jul 4, 2022
1 parent 1b924af commit 6a129a1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/perseus-actix-web/src/configurer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ use perseus::{
},
stores::MutableStore,
};
use std::rc::Rc;

async fn js_bundle(opts: web::Data<Rc<ServerOptions>>) -> std::io::Result<NamedFile> {
async fn js_bundle(opts: web::Data<ServerOptions>) -> std::io::Result<NamedFile> {
NamedFile::open(&opts.js_bundle)
}
async fn wasm_bundle(opts: web::Data<Rc<ServerOptions>>) -> std::io::Result<NamedFile> {
async fn wasm_bundle(opts: web::Data<ServerOptions>) -> std::io::Result<NamedFile> {
NamedFile::open(&opts.wasm_bundle)
}
async fn wasm_js_bundle(opts: web::Data<Rc<ServerOptions>>) -> std::io::Result<NamedFile> {
async fn wasm_js_bundle(opts: web::Data<ServerOptions>) -> std::io::Result<NamedFile> {
NamedFile::open(&opts.wasm_js_bundle)
}
async fn static_alias(
opts: web::Data<Rc<ServerOptions>>,
opts: web::Data<ServerOptions>,
req: HttpRequest,
) -> std::io::Result<NamedFile> {
let filename = opts.static_aliases.get(req.path());
Expand Down

0 comments on commit 6a129a1

Please sign in to comment.