Skip to content

Commit

Permalink
Set nettyPort to -1 when Netty is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyma committed Apr 17, 2024
1 parent f6bb50c commit 545ad8c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ public void start() throws Exception {
grpcPort = server.start();
if (nettyServerEnabled) {
nettyPort = streamServer.start();
} else {
// To make it clear, we explicitly set the value to -1
nettyPort = -1;
}

if (nettyServerEnabled) {
Expand Down

0 comments on commit 545ad8c

Please sign in to comment.