Skip to content

Commit

Permalink
chore: fix import
Browse files Browse the repository at this point in the history
Signed-off-by: nikolay <[email protected]>
  • Loading branch information
natanasow committed Sep 10, 2024
1 parent 620f19f commit 3927017
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

import app from './server';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';
import { setServerTimeout } from './koaJsonRpc/lib/utils'; // Import the 'setServerTimeout' function from the correct location

async function main() {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/koaJsonRpc/lib/methodConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
*/

import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';
import CONSTANTS from '../../../../relay/dist/lib/constants';

const tier1rateLimit = parseInt(
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/koaJsonRpc/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import type { Server } from 'http';
import constants from '@hashgraph/json-rpc-relay/dist/lib/constants';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';

export function hasOwnProperty(obj: any, prop: PropertyKey): boolean {
return Object.prototype.hasOwnProperty.call(obj, prop);
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/rateLimit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import { Logger } from 'pino';
import { formatRequestIdMessage } from '../formatters';
import { Counter, Registry } from 'prom-client';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';

export default class RateLimit {
private duration: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

import { JsonRpcError, MirrorNodeClientError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';
import { ITracerConfig } from '@hashgraph/json-rpc-relay/src/lib/types';
import { collectDefaultMetrics, Histogram, Registry } from 'prom-client';
import KoaJsonRpc from './koaJsonRpc';
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-server/src/controllers/eth_subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import constants from '@hashgraph/json-rpc-relay/dist/lib/constants';
import { MirrorNodeClient } from '@hashgraph/json-rpc-relay/dist/lib/clients';
import jsonResp from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/RpcResponse';
import { constructValidLogSubscriptionFilter, getMultipleAddressesEnabled } from '../utils/utils';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';

/**
* Subscribes to new block headers (newHeads) events and returns the response and subscription ID.
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-server/src/metrics/connectionLimiter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { WebSocketError } from '@hashgraph/json-rpc-relay';
import RateLimit from '@hashgraph/json-rpc-server/dist/rateLimit';
import constants from '@hashgraph/json-rpc-relay/dist/lib/constants';
import { methodConfiguration } from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/methodConfiguration';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';

type IpCounter = {
[key: string]: number;
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-server/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { WS_CONSTANTS } from './constants';
import WsMetricRegistry from '../metrics/wsMetricRegistry';
import ConnectionLimiter from '../metrics/connectionLimiter';
import { Relay } from '@hashgraph/json-rpc-relay';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';

const hasOwnProperty = (obj: any, prop: any) => Object.prototype.hasOwnProperty.call(obj, prop);
const getRequestIdIsOptional = () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ws-server/src/webSocketServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import KoaJsonRpc from '@hashgraph/json-rpc-server/dist/koaJsonRpc';
import jsonResp from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/RpcResponse';
import { JsonRpcError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay';
import { getBatchRequestsMaxSize, getWsBatchRequestsEnabled, handleConnectionClose, sendToClient } from './utils/utils';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/src/lib/services/envProviderService';
import { EnvProviderService } from '@hashgraph/json-rpc-relay/dist/lib/services/envProviderService';

dotenv.config({ path: path.resolve(__dirname, '../../../.env') });

Expand Down

0 comments on commit 3927017

Please sign in to comment.