Method
Subscribe
(event string, listener pubsub.Listener)
Source from the content-addressed store, hash-verified
| 3624 | } |
| 3625 | |
| 3626 | func (p *pubsubReinitSpy) Subscribe(event string, listener pubsub.Listener) (cancel func(), err error) { |
| 3627 | cancel, err = p.Pubsub.Subscribe(event, listener) |
| 3628 | p.Lock() |
| 3629 | if p.expectedEvent != "" && event == p.expectedEvent { |
| 3630 | close(p.triedToSubscribe) |
| 3631 | } |
| 3632 | p.Unlock() |
| 3633 | return cancel, err |
| 3634 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected