File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ func (app *App) watchConfig() (err error) {
78
78
app .config .CheckInterval ,
79
79
app .config .Directory ,
80
80
app .ssh ,
81
- true )
81
+ false )
82
82
if err != nil {
83
83
return errors .Wrap (err , "failed to watch config target" )
84
84
}
@@ -91,13 +91,6 @@ func (app *App) watchConfig() (err error) {
91
91
}()
92
92
zap .L ().Debug ("created new config watcher, awaiting setup" )
93
93
94
- select {
95
- case <- app .configWatcher .InitialDone :
96
- zap .L ().Debug ("config initial setup done" )
97
-
98
- case err = <- app .errors :
99
- }
100
-
101
94
return
102
95
}
103
96
@@ -123,7 +116,7 @@ func (app *App) watchTargets() (err error) {
123
116
app .config .CheckInterval ,
124
117
app .config .Directory ,
125
118
app .ssh ,
126
- true )
119
+ false )
127
120
if err != nil {
128
121
return errors .Wrap (err , "failed to watch targets" )
129
122
}
@@ -136,13 +129,6 @@ func (app *App) watchTargets() (err error) {
136
129
}()
137
130
zap .L ().Debug ("created targets watcher, awaiting setup" )
138
131
139
- select {
140
- case <- app .targetsWatcher .InitialDone :
141
- zap .L ().Debug ("targets initial setup done" )
142
-
143
- case err = <- app .errors :
144
- }
145
-
146
132
return
147
133
}
148
134
You can’t perform that action at this time.
0 commit comments