Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions internal/config/streamprocessing.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package config

import (
"log"
"net"
)

// StreamProcessorType represents the type of stream processing tool to use.
Expand Down Expand Up @@ -93,10 +92,11 @@ func (s *StreamProcessor) setDefaults() {

func (s *StreamProcessor) Valid() bool {
s.setDefaults()

ip := net.ParseIP(s.ServerAddr)
if ip == nil {
log.Fatalln("Invalid IP for stream processor:", s.ServerAddr)

// kafka client would throw a error if a address is unreachable
// we only check if the address is specified
if s.ServerAddr == "" {
log.Fatalln("Invalid server address for stream processor:", s.ServerAddr)
return false
}

Expand Down
Loading