Skip to content

Commit f3f8e60

Browse files
committed
[public-api-server] Group http and grpc servers into a baseserver package
1 parent 2261745 commit f3f8e60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/common-go/baseserver/options.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ func WithHostname(hostname string) Option {
4646

4747
func WithHTTPPort(port int) Option {
4848
return func(cfg *config) error {
49-
if port <= 0 {
49+
50+
if port < 0 {
5051
return fmt.Errorf("http port must be greater than 0, got: %d", port)
5152
}
5253

0 commit comments

Comments
 (0)