()
| 62 | } |
| 63 | |
| 64 | func NewDriverSub() *driverSub { |
| 65 | ds := &driverSub{ |
| 66 | sem: make(chan struct{}, 1), |
| 67 | } |
| 68 | ds.sem <- struct{}{} |
| 69 | return ds |
| 70 | } |
| 71 | |
| 72 | func (s *driverSub) ReceiveBatch(ctx context.Context, maxMessages int) ([]*driver.Message, error) { |
| 73 | for { |
no outgoing calls
no test coverage detected