add log if both USE_WEBSOCKET and USE_GRPC are provided

This commit is contained in:
wphan
2024-12-03 09:33:03 -08:00
parent 93d6bfb7c1
commit 64be27d8eb

View File

@@ -412,6 +412,9 @@ const main = async () => {
if (!endpoint) { if (!endpoint) {
throw new Error('ENDPOINT is required for grpc'); throw new Error('ENDPOINT is required for grpc');
} }
if (useWebsocket) {
logger.warn('USE_GRPC overriding USE_WEBSOCKET');
}
subscriptionConfig = { subscriptionConfig = {
type: 'grpc', type: 'grpc',
grpcConfigs: { grpcConfigs: {