Skip to content

Commit

Permalink
fix: πŸ› geth adapter should only call supported generic rpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordi committed Aug 4, 2022
1 parent 989dc2c commit d0fa3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/geth.ts
Expand Up @@ -186,7 +186,7 @@ export class GethAdapter extends GenericNodeAdapter {

public async captureNodeMetrics(ethClient: EthereumClient, captureTime: number): Promise<NodeMetricsMessage[]> {
const [defaultMetrics, gethMetrics] = await Promise.all([
captureDefaultMetrics(ethClient, captureTime),
captureDefaultMetrics(ethClient, captureTime, this.supports),
captureGethMetrics(ethClient, captureTime, this.gethSupports!),
]);
return [defaultMetrics, gethMetrics].filter(m => m != null) as NodeMetricsMessage[];
Expand Down

0 comments on commit d0fa3b8

Please sign in to comment.