mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
fix simplify code to start using context (#9350)
This commit is contained in:
@@ -50,7 +50,7 @@ func (ps *PubSub) Publish(item interface{}) {
|
||||
}
|
||||
|
||||
// Subscribe - Adds a subscriber to pubsub system
|
||||
func (ps *PubSub) Subscribe(subCh chan interface{}, doneCh chan struct{}, filter func(entry interface{}) bool) {
|
||||
func (ps *PubSub) Subscribe(subCh chan interface{}, doneCh <-chan struct{}, filter func(entry interface{}) bool) {
|
||||
ps.Lock()
|
||||
defer ps.Unlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user