mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-21 21:17:13 +02:00
pkg/storage: make Watch returns receive only channel (#1211)
So the caller can not write to the channel, and insist that the channel is for notifying only.
This commit is contained in:
parent
f4cb5ea6e9
commit
ec52412d79
4 changed files with 5 additions and 5 deletions
|
@ -33,5 +33,5 @@ type Backend interface {
|
|||
// Watch returns a channel to the caller. The channel is used to notify
|
||||
// about changes that happen in storage. When ctx is finished, Watch will close
|
||||
// the channel.
|
||||
Watch(ctx context.Context) chan struct{}
|
||||
Watch(ctx context.Context) <-chan struct{}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue