v3.7.1: chore() naming consistency for interface, pass through logger for ws url getter

This commit is contained in:
tiagosiebler
2023-06-27 11:13:54 +01:00
parent b12f243a3d
commit 2d31bda1d7
7 changed files with 19 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
import { APIMarket, CategoryV5, WsKey } from '../types';
import { DefaultLogger } from './logger';
interface NetworkMapV3 {
livenet: string;
@@ -397,6 +398,7 @@ export function getWsUrl(
wsKey: WsKey,
wsUrl: string | undefined,
isTestnet: boolean,
logger: typeof DefaultLogger,
): string {
if (wsUrl) {
return wsUrl;
@@ -479,7 +481,7 @@ export function getWsUrl(
return WS_BASE_URL_MAP.v5OptionPublic.public[networkKey];
}
default: {
this.logger.error('getWsUrl(): Unhandled wsKey: ', {
logger.error('getWsUrl(): Unhandled wsKey: ', {
category: 'bybit-ws',
wsKey,
});