tao12345666333 commented on code in PR #1022:
URL: 
https://github.com/apache/apisix-ingress-controller/pull/1022#discussion_r875653197


##########
pkg/apisix/apisix.go:
##########
@@ -227,3 +232,32 @@ func (c *apisix) DeleteCluster(name string) {
        // just delete its index.
        delete(c.clusters, name)
 }
+
+func (c *apisix) syncCacheAll(ctx context.Context) {
+       c.mu.Lock()
+       defer c.mu.Unlock()
+       wg := sync.WaitGroup{}
+       for _, cluster := range c.clusters {
+               wg.Add(1)
+               go func(clu Cluster) {
+                       defer wg.Done()
+                       clu.SyncCache(ctx)

Review Comment:
   This is synchronize the data in APISIX to the cache



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to