Commit d1d54f81 authored by xichengliudui's avatar xichengliudui

update pull request

update pull request
parent 5aa58efe
......@@ -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}
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment