mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 18:33:19 +02:00
propagate changes back from encrypted backend (#2079)
This commit is contained in:
parent
8924b1a5fc
commit
6aa716bc95
2 changed files with 24 additions and 7 deletions
|
@ -102,7 +102,14 @@ func (e *encryptedBackend) Put(ctx context.Context, record *databroker.Record) e
|
|||
newRecord := proto.Clone(record).(*databroker.Record)
|
||||
newRecord.Data = encrypted
|
||||
|
||||
return e.underlying.Put(ctx, newRecord)
|
||||
if err = e.underlying.Put(ctx, newRecord); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
record.ModifiedAt = newRecord.ModifiedAt
|
||||
record.Version = newRecord.Version
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (e *encryptedBackend) Sync(ctx context.Context, version uint64) (RecordStream, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue