We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8994a0 commit bad1fd4Copy full SHA for bad1fd4
crates/trigger-http/src/server.rs
@@ -156,8 +156,7 @@ impl<F: RuntimeFactors> HttpServer<F> {
156
let mut addr = self.listen_addr;
157
for _ in 1..=9 {
158
addr.set_port(addr.port() + 1);
159
-
160
- if !addr.port() == u16::MAX {
+ if addr.port() as u32 >= (u16::MAX + 1) as u32 {
161
anyhow::bail!(
162
"Couldn't find a free port as we've reached the maximum port number. Consider retrying with a lower base port."
163
);
0 commit comments