Skip to content

Commit 320a492

Browse files
committed
feat: ignore scheduler and placement connect
Signed-off-by: Gallardot <gallardot@apache.org>
1 parent edb70cf commit 320a492

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/standalone/run.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)