(ctx context.Context)
| 35 | } |
| 36 | |
| 37 | func NewMemoryQueueFactory(ctx context.Context) TubeFactory { |
| 38 | return &MemoryQueueFactory{ |
| 39 | ctx: ctx, |
| 40 | queues: make(map[string]*queue), |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func (f *MemoryQueueFactory) getOrCreateChan(name string) chan Record { |
| 45 | f.mu.Lock() |
no outgoing calls