File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ func (service *HTTPRestService) mustGenerateCNIConflistOnce() {
208208}
209209
210210func (service * HTTPRestService ) WaitForConfList (ctx context.Context ) {
211- //sync loop never set up get out of here.
211+ // Sync loop never set up, get out of here.
212212 if ! service .ncSyncLoop .Load () {
213213 return
214214 }
Original file line number Diff line number Diff line change @@ -1118,10 +1118,10 @@ func main() {
11181118 httpRemoteRestService .StartNodeSubnet (rootCtx )
11191119 }
11201120
1121- //we wrote out the conflist right?
1121+ // Wait for NC sync to complete before marking service as ready.
11221122 httpRemoteRestService .WaitForConfList (rootCtx )
11231123 // mark the service as "ready"
1124- close (readyCh ) //will still block if root ctx is canceled?
1124+ close (readyCh ) // This will not block, even if rootCtx is canceled.
11251125 // block until process exiting
11261126 <- rootCtx .Done ()
11271127
You can’t perform that action at this time.
0 commit comments