mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
[pkg/kubelet]: make func a little comfortable
This func has only 1 argument, don't wrap it across multiple lines Signed-off-by: Zhou Peng <p@ctriple.cn>
This commit is contained in:
parent
f790f0a93f
commit
930bedf144
@ -128,9 +128,7 @@ func (s *runtimeState) storageErrors() error {
|
|||||||
return utilerrors.NewAggregate(errs)
|
return utilerrors.NewAggregate(errs)
|
||||||
}
|
}
|
||||||
|
|
||||||
func newRuntimeState(
|
func newRuntimeState(runtimeSyncThreshold time.Duration) *runtimeState {
|
||||||
runtimeSyncThreshold time.Duration,
|
|
||||||
) *runtimeState {
|
|
||||||
return &runtimeState{
|
return &runtimeState{
|
||||||
lastBaseRuntimeSync: time.Time{},
|
lastBaseRuntimeSync: time.Time{},
|
||||||
baseRuntimeSyncThreshold: runtimeSyncThreshold,
|
baseRuntimeSyncThreshold: runtimeSyncThreshold,
|
||||||
|
Loading…
Reference in New Issue
Block a user