mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-19 01:28:51 +02:00
authorize: refactor store locking (#2151)
* authorize: refactor store locking * fix nil reference panic
This commit is contained in:
parent
9215833a0b
commit
c85c8b0778
5 changed files with 82 additions and 55 deletions
|
@ -156,8 +156,8 @@ func (syncer *Syncer) sync(ctx context.Context) error {
|
|||
}
|
||||
|
||||
log.Debug(syncer.logCtx(ctx)).
|
||||
Uint("version", uint(res.Record.GetVersion())).
|
||||
Str("id", res.Record.Id).
|
||||
Uint("version", uint(res.GetRecord().GetVersion())).
|
||||
Str("id", res.GetRecord().GetId()).
|
||||
Msg("syncer got record")
|
||||
|
||||
if syncer.recordVersion != res.GetRecord().GetVersion()-1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue