Merge pull request #613 from hangyan/fix-unused-para

Remove unused function parameter in PollAPIServer
This commit is contained in:
Marcin Wielgus 2018-02-05 17:28:43 +01:00 committed by GitHub
commit 1bac510001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -129,6 +129,5 @@ func main() {
RecommendationOffset: int64(*recommendationOffset),
Resources: resources,
},
*containerName,
pollPeriod)
}

View File

@ -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.