Skip to content

Commit b539e98

Browse files
committed
router: bypass the rate limiter for the initial commit
Previously the router would trigger the initial commit via the rate limiter. This change ensures the initial commit is triggered directly so the commit of the first sync can occur immediately.
1 parent 4e5c579 commit b539e98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/router/template/router.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ func newTemplateRouter(cfg templateRouterCfg) (*templateRouter, error) {
186186
return nil, err
187187
}
188188
glog.V(4).Infof("Committing state")
189-
router.Commit()
189+
// Bypass the rate limiter to ensure the first sync will be
190+
// committed without delay.
191+
router.commitAndReload()
190192
return router, nil
191193
}
192194

0 commit comments

Comments
 (0)