File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -200,16 +200,16 @@ func (service *HTTPRestService) mustGenerateCNIConflistOnce() {
200200 })
201201}
202202
203- func (service * HTTPRestService ) WaitForNCSynced (ctx context.Context ) error {
203+ func (service * HTTPRestService ) WaitForConfList (ctx context.Context ) {
204204 //sync loop never set up get out of here.
205205 if service .ncSynced == nil {
206- return nil
206+ return
207207 }
208208
209209 select {
210210 case <- service .ncSynced :
211- return nil
211+ return
212212 case <- ctx .Done ():
213- return ctx . Err ()
213+ return
214214 }
215215}
Original file line number Diff line number Diff line change @@ -1119,7 +1119,7 @@ func main() {
11191119 }
11201120
11211121 //we wrote out the conflist right?
1122- httpRemoteRestService .WaitForNCSynced (rootCtx )
1122+ httpRemoteRestService .WaitForConfList (rootCtx )
11231123 // mark the service as "ready"
11241124 close (readyCh ) //will still block if root ctx is canceled?
11251125 // block until process exiting
You can’t perform that action at this time.
0 commit comments