Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ee5ea41f
Unverified
Commit
ee5ea41f
authored
Dec 20, 2017
by
silenceshell
Committed by
GitHub
Dec 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a typo
`timemoutseconds` should be `timeoutSeconds`.
parent
f3024879
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
reflector.go
staging/src/k8s.io/client-go/tools/cache/reflector.go
+2
-2
No files found.
staging/src/k8s.io/client-go/tools/cache/reflector.go
View file @
ee5ea41f
...
@@ -302,12 +302,12 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
...
@@ -302,12 +302,12 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
default
:
default
:
}
}
time
mouts
econds
:=
int64
(
minWatchTimeout
.
Seconds
()
*
(
rand
.
Float64
()
+
1.0
))
time
outS
econds
:=
int64
(
minWatchTimeout
.
Seconds
()
*
(
rand
.
Float64
()
+
1.0
))
options
=
metav1
.
ListOptions
{
options
=
metav1
.
ListOptions
{
ResourceVersion
:
resourceVersion
,
ResourceVersion
:
resourceVersion
,
// We want to avoid situations of hanging watchers. Stop any wachers that do not
// We want to avoid situations of hanging watchers. Stop any wachers that do not
// receive any events within the timeout window.
// receive any events within the timeout window.
TimeoutSeconds
:
&
time
mouts
econds
,
TimeoutSeconds
:
&
time
outS
econds
,
}
}
r
.
metrics
.
numberOfWatches
.
Inc
()
r
.
metrics
.
numberOfWatches
.
Inc
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment