mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-13 09:07:44 +02:00
postgres: registry support (#3454)
This commit is contained in:
parent
ca8db7b619
commit
24a9d627cd
9 changed files with 436 additions and 36 deletions
|
@ -104,7 +104,7 @@ func newChangedRecordStream(
|
|||
recordType: recordType,
|
||||
recordVersion: recordVersion,
|
||||
ticker: time.NewTicker(watchPollInterval),
|
||||
changed: backend.onChange.Bind(),
|
||||
changed: backend.onRecordChange.Bind(),
|
||||
}
|
||||
stream.ctx, stream.cancel = contextutil.Merge(ctx, backend.closeCtx)
|
||||
return stream
|
||||
|
@ -113,7 +113,7 @@ func newChangedRecordStream(
|
|||
func (stream *changedRecordStream) Close() error {
|
||||
stream.cancel()
|
||||
stream.ticker.Stop()
|
||||
stream.backend.onChange.Unbind(stream.changed)
|
||||
stream.backend.onRecordChange.Unbind(stream.changed)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue