MCPcopy
hub / github.com/pingcap/tidb / GetKeepalive

Function GetKeepalive

br/pkg/task/common.go:939–944  ·  view source on GitHub ↗

GetKeepalive get the keepalive info from the config.

(cfg *Config)

Source from the content-addressed store, hash-verified

937
938// GetKeepalive get the keepalive info from the config.
939func 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).

Callers 15

initMethod · 0.92
setPDConfigCommandFunction · 0.92
RunBackupFunction · 0.85
RunRestoreTxnFunction · 0.85
RunRestoreRawFunction · 0.85
RunBackupRawFunction · 0.85
NewStreamMgrFunction · 0.85
RunStreamAdvancerFunction · 0.85
makeStatusControllerFunction · 0.85
createLogClientFunction · 0.85
RunResolveKvDataFunction · 0.85
RunRestoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected