( ctx context.Context, ups common.Upstream, req *evm.QueryTransactionsRequest, onPage func(proto.Message) error, )
| 50 | } |
| 51 | |
| 52 | func (qe *EvmQueryExecutor) pipeThroughQueryTransactions( |
| 53 | ctx context.Context, |
| 54 | ups common.Upstream, |
| 55 | req *evm.QueryTransactionsRequest, |
| 56 | onPage func(proto.Message) error, |
| 57 | ) error { |
| 58 | client, ok := getGrpcBdsClient(ups) |
| 59 | if !ok || client.QueryClient() == nil { |
| 60 | return fmt.Errorf("upstream %s does not support query streaming", ups.Id()) |
| 61 | } |
| 62 | qe.logger.Debug().Str("upstreamId", ups.Id()).Msgf("opening QueryTransactions stream to upstream") |
| 63 | stream, err := client.QueryClient().QueryTransactions(ctx, req) |
| 64 | if err != nil { |
| 65 | return err |
| 66 | } |
| 67 | return qe.recvProtoStream(func() (proto.Message, error) { return stream.Recv() }, onPage, "eth_queryTransactions", ups.Id()) |
| 68 | } |
| 69 | |
| 70 | func (qe *EvmQueryExecutor) pipeThroughQueryLogs( |
| 71 | ctx context.Context, |
no test coverage detected