(ctx context.Context, state *module.ConnState)
| 95 | } |
| 96 | |
| 97 | func (d *MsgPipeline) RunEarlyChecks(ctx context.Context, state *module.ConnState) error { |
| 98 | eg, checkCtx := errgroup.WithContext(ctx) |
| 99 | |
| 100 | // TODO: See if there is some point in parallelization of this |
| 101 | // function. |
| 102 | for _, check := range d.globalChecks { |
| 103 | earlyCheck, ok := check.(module.EarlyCheck) |
| 104 | if !ok { |
| 105 | continue |
| 106 | } |
| 107 | |
| 108 | eg.Go(func() error { |
| 109 | return earlyCheck.CheckConnection(checkCtx, state) |
| 110 | }) |
| 111 | } |
| 112 | return eg.Wait() |
| 113 | } |
| 114 | |
| 115 | // StartDelivery starts new message delivery, runs connection and sender checks, sender modifiers |
| 116 | // and selects source block from config to use for handling. |
no test coverage detected