mirror of https://github.com/fafhrd91/actix-net
use panic instead of unreachable on worker handle overflow
This commit is contained in:
parent
269bd24da9
commit
ccbdaaf099
|
@ -113,7 +113,7 @@ impl Availability {
|
||||||
} else if idx < 128 * 4 {
|
} else if idx < 128 * 4 {
|
||||||
(3, idx - 128 * 3)
|
(3, idx - 128 * 3)
|
||||||
} else {
|
} else {
|
||||||
unreachable!("Max WorkerHandle count is 512")
|
panic!("Max WorkerHandle count is 512")
|
||||||
};
|
};
|
||||||
|
|
||||||
if avail {
|
if avail {
|
||||||
|
|
Loading…
Reference in New Issue