use panic instead of unreachable on worker handle overflow

This commit is contained in:
fakeshadow 2021-04-14 21:10:28 +08:00
parent 269bd24da9
commit ccbdaaf099
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ impl Availability {
} else if idx < 128 * 4 {
(3, idx - 128 * 3)
} else {
unreachable!("Max WorkerHandle count is 512")
panic!("Max WorkerHandle count is 512")
};
if avail {