Skip to content

Commit

Permalink
🥅 panic instead of sleeping in unreachable loop
Browse files Browse the repository at this point in the history
  • Loading branch information
friedow committed Oct 31, 2023
1 parent 2d316b8 commit 8f97c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/plugin/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn spawn<PluginType: Plugin + std::marker::Send + 'static>(
}

loop {
async_std::task::sleep(std::time::Duration::from_secs(u64::max_value())).await;
panic!("This point of execution should have never been reached.");
}
},
);
Expand Down

0 comments on commit 8f97c8c

Please sign in to comment.