Merge pull request #613 from hangyan/fix-unused-para
Remove unused function parameter in PollAPIServer
This commit is contained in:
commit
1bac510001
|
|
@ -129,6 +129,5 @@ func main() {
|
|||
RecommendationOffset: int64(*recommendationOffset),
|
||||
Resources: resources,
|
||||
},
|
||||
*containerName,
|
||||
pollPeriod)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ type ResourceEstimator interface {
|
|||
// PollAPIServer periodically counts the number of nodes, estimates the expected
|
||||
// ResourceRequirements, compares them to the actual ResourceRequirements, and
|
||||
// updates the deployment with the expected ResourceRequirements if necessary.
|
||||
func PollAPIServer(k8s KubernetesClient, est ResourceEstimator, contName string, pollPeriod time.Duration) {
|
||||
func PollAPIServer(k8s KubernetesClient, est ResourceEstimator, pollPeriod time.Duration) {
|
||||
for i := 0; true; i++ {
|
||||
if i != 0 {
|
||||
// Sleep for the poll period.
|
||||
|
|
|
|||
Loading…
Reference in New Issue