Allow pulishers to block once
This commit is contained in:
parent
b435855979
commit
50dea31d7b
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ type Tee struct {
|
|||
|
||||
// Attach creates a new receiver channel and attaches it to the tee
|
||||
func (t *Tee) Attach() <-chan Param {
|
||||
out := make(chan Param)
|
||||
out := make(chan Param, 1)
|
||||
t.add(out)
|
||||
return out
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue