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
7dfe0dae
Commit
7dfe0dae
authored
Sep 20, 2018
by
tanshanshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix syntax error:'its'
parent
f6d8fd8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rate_limitting_queue.go
...c/k8s.io/client-go/util/workqueue/rate_limitting_queue.go
+3
-3
No files found.
staging/src/k8s.io/client-go/util/workqueue/rate_limitting_queue.go
View file @
7dfe0dae
...
@@ -20,10 +20,10 @@ package workqueue
...
@@ -20,10 +20,10 @@ package workqueue
type
RateLimitingInterface
interface
{
type
RateLimitingInterface
interface
{
DelayingInterface
DelayingInterface
// AddRateLimited adds an item to the workqueue after the rate limiter says its ok
// AddRateLimited adds an item to the workqueue after the rate limiter says it
'
s ok
AddRateLimited
(
item
interface
{})
AddRateLimited
(
item
interface
{})
// Forget indicates that an item is finished being retried. Doesn't matter whether its for perm failing
// Forget indicates that an item is finished being retried. Doesn't matter whether it
'
s for perm failing
// or for success, we'll stop the rate limiter from tracking it. This only clears the `rateLimiter`, you
// or for success, we'll stop the rate limiter from tracking it. This only clears the `rateLimiter`, you
// still have to call `Done` on the queue.
// still have to call `Done` on the queue.
Forget
(
item
interface
{})
Forget
(
item
interface
{})
...
@@ -55,7 +55,7 @@ type rateLimitingType struct {
...
@@ -55,7 +55,7 @@ type rateLimitingType struct {
rateLimiter
RateLimiter
rateLimiter
RateLimiter
}
}
// AddRateLimited AddAfter's the item based on the time when the rate limiter says its ok
// AddRateLimited AddAfter's the item based on the time when the rate limiter says it
'
s ok
func
(
q
*
rateLimitingType
)
AddRateLimited
(
item
interface
{})
{
func
(
q
*
rateLimitingType
)
AddRateLimited
(
item
interface
{})
{
q
.
DelayingInterface
.
AddAfter
(
item
,
q
.
rateLimiter
.
When
(
item
))
q
.
DelayingInterface
.
AddAfter
(
item
,
q
.
rateLimiter
.
When
(
item
))
}
}
...
...
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