1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | Object.defineProperty(exports, "__esModule", { value: true });
|
19 | exports.channelOptionsEqual = exports.recognizedOptions = void 0;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | exports.recognizedOptions = {
|
25 | 'grpc.ssl_target_name_override': true,
|
26 | 'grpc.primary_user_agent': true,
|
27 | 'grpc.secondary_user_agent': true,
|
28 | 'grpc.default_authority': true,
|
29 | 'grpc.keepalive_time_ms': true,
|
30 | 'grpc.keepalive_timeout_ms': true,
|
31 | 'grpc.keepalive_permit_without_calls': true,
|
32 | 'grpc.service_config': true,
|
33 | 'grpc.max_concurrent_streams': true,
|
34 | 'grpc.initial_reconnect_backoff_ms': true,
|
35 | 'grpc.max_reconnect_backoff_ms': true,
|
36 | 'grpc.use_local_subchannel_pool': true,
|
37 | 'grpc.max_send_message_length': true,
|
38 | 'grpc.max_receive_message_length': true,
|
39 | 'grpc.enable_http_proxy': true,
|
40 | 'grpc.enable_channelz': true,
|
41 | 'grpc.dns_min_time_between_resolutions_ms': true,
|
42 | 'grpc.enable_retries': true,
|
43 | 'grpc.per_rpc_retry_buffer_size': true,
|
44 | 'grpc.retry_buffer_size': true,
|
45 | 'grpc.max_connection_age_ms': true,
|
46 | 'grpc.max_connection_age_grace_ms': true,
|
47 | 'grpc-node.max_session_memory': true,
|
48 | 'grpc.service_config_disable_resolution': true,
|
49 | 'grpc.client_idle_timeout_ms': true,
|
50 | 'grpc-node.tls_enable_trace': true,
|
51 | };
|
52 | function channelOptionsEqual(options1, options2) {
|
53 | const keys1 = Object.keys(options1).sort();
|
54 | const keys2 = Object.keys(options2).sort();
|
55 | if (keys1.length !== keys2.length) {
|
56 | return false;
|
57 | }
|
58 | for (let i = 0; i < keys1.length; i += 1) {
|
59 | if (keys1[i] !== keys2[i]) {
|
60 | return false;
|
61 | }
|
62 | if (options1[keys1[i]] !== options2[keys2[i]]) {
|
63 | return false;
|
64 | }
|
65 | }
|
66 | return true;
|
67 | }
|
68 | exports.channelOptionsEqual = channelOptionsEqual;
|
69 |
|
\ | No newline at end of file |