remove promotions for now
This commit is contained in:
@@ -2,7 +2,6 @@ package actor
|
||||
|
||||
import (
|
||||
"iter"
|
||||
"log"
|
||||
"slices"
|
||||
"sync"
|
||||
)
|
||||
@@ -28,7 +27,7 @@ func (p *PubSub[V]) Subscribe(receiver ReceiverFunc[V]) {
|
||||
}
|
||||
p.mu.Lock()
|
||||
defer p.mu.Unlock()
|
||||
log.Printf("adding subscriber")
|
||||
// log.Printf("adding subscriber")
|
||||
p.subscribers = append(p.subscribers, &receiver)
|
||||
}
|
||||
|
||||
@@ -43,7 +42,7 @@ func (p *PubSub[V]) Unsubscribe(receiver ReceiverFunc[V]) {
|
||||
continue
|
||||
}
|
||||
if sub == prt {
|
||||
log.Printf("removing subscriber")
|
||||
// log.Printf("removing subscriber")
|
||||
p.subscribers = append(list[:i], list[i+1:]...)
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user