From 3a545d71253b0bf4b9993f7205fd8f3b4ebb3d6a Mon Sep 17 00:00:00 2001 From: Mya Pitzeruse Date: Wed, 21 Dec 2022 09:47:08 -0600 Subject: [PATCH] decrease check frequency --- internal/git/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/git/endpoint.go b/internal/git/endpoint.go index 8d6debf..2564d72 100644 --- a/internal/git/endpoint.go +++ b/internal/git/endpoint.go @@ -141,7 +141,7 @@ func (e *Endpoint) Lookup(w http.ResponseWriter, r *http.Request) { func (e *Endpoint) SyncLoop(ctx context.Context) error { clock := clocks.Extract(ctx) - timer := clock.NewTicker(time.Second) + timer := clock.NewTicker(30 * time.Second) defer timer.Stop() keys := make([]string, 0, len(e.sites))