authorize: add databroker server and record version to result, force sync via polling (#2024)

* authorize: add databroker server and record version to result, force sync via polling

* wrap inmem store to take read lock when grabbing databroker versions

* address code review comments

* reset max to 0
This commit is contained in:
Caleb Doxsey 2021-03-31 10:09:06 -06:00 committed by GitHub
parent 8f97b0d6ee
commit d7ab817de7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 467 additions and 362 deletions

View file

@ -206,7 +206,7 @@ func (s *syncerHandler) ClearRecords(ctx context.Context) {
s.src.mu.Unlock()
}
func (s *syncerHandler) UpdateRecords(ctx context.Context, records []*databroker.Record) {
func (s *syncerHandler) UpdateRecords(ctx context.Context, serverVersion uint64, records []*databroker.Record) {
if len(records) == 0 {
return
}