update pull request

update pull request
This commit is contained in:
xichengliudui 2019-02-12 12:10:43 -05:00
parent 5aa58efe07
commit d1d54f81ec
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ type basicWorkQueue struct {
var _ WorkQueue = &basicWorkQueue{}
// NewBasicWorkQueue instantiate the queue and return WorkQueue
// NewBasicWorkQueue returns a new basic WorkQueue with the provided clock
func NewBasicWorkQueue(clock clock.Clock) WorkQueue {
queue := make(map[types.UID]time.Time)
return &basicWorkQueue{queue: queue, clock: clock}

View File

@ -21,7 +21,7 @@ import (
kubecontainer "k8s.io/kubernetes/pkg/kubelet/container"
)
// StringInSlice traversal and determine return bool
// StringInSlice returns true if s is in list
func StringInSlice(s string, list []string) bool {
for _, v := range list {
if v == s {