Skip to content

Commit

Permalink
Clean up HTTP server example
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 2, 2023
1 parent d114dc1 commit 3d8d5c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/examples/microkit/http-server/pds/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,17 @@ fn init() -> impl Handler {
},
);

let fs_block_io = shared_block_io.clone();
let fs_block_io = CachedBlockIO::new(fs_block_io.clone(), BLOCK_CACHE_SIZE_IN_BLOCKS);

HandlerImpl::new(
TIMER_DRIVER,
NET_DRIVER,
BLOCK_DRIVER,
timer_client,
net_device,
net_config,
shared_block_io,
shared_block_io.clone(),
|timers_ctx, network_ctx, spawner| async move {
let fs_block_io = shared_block_io.clone();
let fs_block_io = CachedBlockIO::new(fs_block_io.clone(), BLOCK_CACHE_SIZE_IN_BLOCKS);
let disk = Disk::new(fs_block_io);
let entry = disk.read_mbr().await.unwrap().partition(0).unwrap();
let fs_block_io = disk.partition_using_mbr(&entry);
Expand Down

0 comments on commit 3d8d5c4

Please sign in to comment.