Skip to content

Commit

Permalink
chore: move type inside correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Oct 16, 2023
1 parent 3ee496e commit 67eeafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/providers/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { capture } from '@snapshot-labs/snapshot-sentry';
import { timeProvidersUpload, providersUploadSize, countOpenProvidersRequest } from '../metrics';
import { providersMap } from './utils';
import type { ProviderType } from '../utils';

type ProviderType = 'image' | 'json';

export default function uploadToProviders(
providers: string[],
Expand Down
2 changes: 0 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { createHash } from 'crypto';
import { Response } from 'express';
import constants from './constants.json';

export type ProviderType = 'image' | 'json';

export function rpcSuccess(res: Response, result: any, id = '') {
res.json({
jsonrpc: '2.0',
Expand Down

0 comments on commit 67eeafd

Please sign in to comment.