GetKeepalive get the keepalive info from the config.
(cfg *Config)
| 937 | |
| 938 | // GetKeepalive get the keepalive info from the config. |
| 939 | func GetKeepalive(cfg *Config) keepalive.ClientParameters { |
| 940 | return keepalive.ClientParameters{ |
| 941 | Time: cfg.GRPCKeepaliveTime, |
| 942 | Timeout: cfg.GRPCKeepaliveTimeout, |
| 943 | } |
| 944 | } |
| 945 | |
| 946 | // adjust adjusts the abnormal config value in the current config. |
| 947 | // useful when not starting BR from CLI (e.g. from BRIE in SQL). |
no outgoing calls
no test coverage detected