From 64be27d8ebca1bf97a178d30cbbb464c66ed498a Mon Sep 17 00:00:00 2001 From: wphan Date: Tue, 3 Dec 2024 09:33:03 -0800 Subject: [PATCH] add log if both USE_WEBSOCKET and USE_GRPC are provided --- src/publishers/dlobPublisher.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/publishers/dlobPublisher.ts b/src/publishers/dlobPublisher.ts index f10a66d..12c3a62 100644 --- a/src/publishers/dlobPublisher.ts +++ b/src/publishers/dlobPublisher.ts @@ -412,6 +412,9 @@ const main = async () => { if (!endpoint) { throw new Error('ENDPOINT is required for grpc'); } + if (useWebsocket) { + logger.warn('USE_GRPC overriding USE_WEBSOCKET'); + } subscriptionConfig = { type: 'grpc', grpcConfigs: {