MCPcopy Create free account
hub / github.com/erpc/erpc / supportsQueryMethods

Method supportsQueryMethods

erpc/query_executor.go:271–274  ·  view source on GitHub ↗
(ups common.Upstream)

Source from the content-addressed store, hash-verified

269}
270
271func (qe *EvmQueryExecutor) supportsQueryMethods(ups common.Upstream) bool {
272 client, ok := getGrpcBdsClient(ups)
273 return ok && client.QueryClient() != nil
274}
275
276func (qe *EvmQueryExecutor) resolveQueryBounds(ctx context.Context, from, to string, order evm.SortOrder, cursor *evm.CursorBlock) (uint64, uint64, error) {
277 _, span := common.StartDetailSpan(ctx, "Query.ResolveQueryBounds")

Callers 1

tryQueryUpstreamsMethod · 0.95

Calls 2

getGrpcBdsClientFunction · 0.85
QueryClientMethod · 0.65

Tested by

no test coverage detected