File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,11 @@ func (config *RunConfig) validatePlacementHostAddr() error {
129129 if len (placementHostAddr ) == 0 {
130130 placementHostAddr = "localhost"
131131 }
132+
133+ if strings .TrimSpace (placementHostAddr ) == "" {
134+ return nil
135+ }
136+
132137 if indx := strings .Index (placementHostAddr , ":" ); indx == - 1 {
133138 if runtime .GOOS == daprWindowsOS {
134139 placementHostAddr += ":6050"
@@ -146,6 +151,10 @@ func (config *RunConfig) validateSchedulerHostAddr() error {
146151 return nil
147152 }
148153
154+ if strings .TrimSpace (schedulerHostAddr ) == "" {
155+ return nil
156+ }
157+
149158 if indx := strings .Index (schedulerHostAddr , ":" ); indx == - 1 {
150159 if runtime .GOOS == daprWindowsOS {
151160 schedulerHostAddr += ":6060"
You can’t perform that action at this time.
0 commit comments