File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -53,37 +53,37 @@ func (mp MapAndEnqueue) Get(r workqueue.RateLimitingInterface) cache.ResourceEve
53
53
return
54
54
}
55
55
}
56
- mp .addRateLimited (r , obj )
56
+ mp .add (r , obj )
57
57
},
58
58
UpdateFunc : func (old , obj interface {}) {
59
59
for _ , p := range mp .Predicates {
60
60
if ! p .HandleUpdate (old , obj ) {
61
61
return
62
62
}
63
63
}
64
- mp .addRateLimited (r , obj )
64
+ mp .add (r , obj )
65
65
},
66
66
DeleteFunc : func (obj interface {}) {
67
67
for _ , p := range mp .Predicates {
68
68
if ! p .HandleDelete (obj ) {
69
69
return
70
70
}
71
71
}
72
- mp .addRateLimited (r , obj )
72
+ mp .add (r , obj )
73
73
},
74
74
}
75
75
}
76
76
77
- // addRateLimited maps the obj to a string. If the string is non-empty, it is enqueued.
78
- func (mp MapAndEnqueue ) addRateLimited (r workqueue.RateLimitingInterface , obj interface {}) {
77
+ // add maps the obj to a string. If the string is non-empty, it is enqueued.
78
+ func (mp MapAndEnqueue ) add (r workqueue.RateLimitingInterface , obj interface {}) {
79
79
if mp .Map != nil {
80
80
if k := mp .Map (obj ); len (k ) > 0 {
81
- r .AddRateLimited (k )
81
+ r .Add (k )
82
82
}
83
83
}
84
84
if mp .MultiMap != nil {
85
85
for _ , k := range mp .MultiMap (obj ) {
86
- r .AddRateLimited (k .Namespace + "/" + k .Name )
86
+ r .Add (k .Namespace + "/" + k .Name )
87
87
}
88
88
}
89
89
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ type listeningQueue struct {
45
45
func (q * listeningQueue ) watchChannel (source <- chan string ) error {
46
46
go func () {
47
47
for msg := range source {
48
- q .AddRateLimited (msg )
48
+ q .Add (msg )
49
49
}
50
50
}()
51
51
return nil
You can’t perform that action at this time.
0 commit comments