You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/08/02 01:16:32 UTC

[GitHub] [apisix-ingress-controller] tokers commented on a change in pull request #601: feat: implement schema API

tokers commented on a change in pull request #601:
URL: https://github.com/apache/apisix-ingress-controller/pull/601#discussion_r680598607



##########
File path: pkg/apisix/cluster.go
##########
@@ -315,52 +317,74 @@ func (c *cluster) HasSynced(ctx context.Context) error {
 	}
 }
 
-// syncSchema syncs schema from APISIX.
+// syncSchema syncs schema from APISIX regularly according to the interval.
+func (c *cluster) syncSchema(interval time.Duration) {
+	sigCh := make(chan os.Signal, 1)
+	signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)

Review comment:
       cache sync is not an one-kick event, it will be executed once the leader changing.




-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org