Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
The gRPC docs are maybe a bit misleading because they state that the port part of the URI is mandatory.
However, it's currently possible to omit it and you then end up with either a consumer started on a random port (because the port int has the default value of 0). Or a producer that tries to connect to the gRPC default port.
So I propose to initialize the port with a default of -1 and fix up the validation logic as using isEmpty is not really appropriate in this case.