Skip to content

Commit bad1fd4

Browse files
committed
fix: bitwise logic error
Signed-off-by: Aminu 'Seun Joshua <[email protected]>
1 parent f8994a0 commit bad1fd4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/trigger-http/src/server.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ impl<F: RuntimeFactors> HttpServer<F> {
156156
let mut addr = self.listen_addr;
157157
for _ in 1..=9 {
158158
addr.set_port(addr.port() + 1);
159-
160-
if !addr.port() == u16::MAX {
159+
if addr.port() as u32 >= (u16::MAX + 1) as u32 {
161160
anyhow::bail!(
162161
"Couldn't find a free port as we've reached the maximum port number. Consider retrying with a lower base port."
163162
);

0 commit comments

Comments
 (0)