skip configuration updates to the most recent one (#2690)

This commit is contained in:
Denis Mishin 2021-10-21 11:03:26 -04:00 committed by GitHub
parent f22e34c8e0
commit 30664cd307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 667 additions and 5 deletions

View file

@ -195,7 +195,8 @@ func (src *ConfigSource) runUpdater(cfg *config.Config) {
syncer := databroker.NewSyncer("databroker", &syncerHandler{
client: client,
src: src,
}, databroker.WithTypeURL(grpcutil.GetTypeURL(new(configpb.Config))))
}, databroker.WithTypeURL(grpcutil.GetTypeURL(new(configpb.Config))),
databroker.WithFastForward())
go func() { _ = syncer.Run(ctx) }()
}