fn: cleanup of unused/global constants in lb agent (#1020)

Moved retry interval as placer member variable for time-being.
This commit is contained in:
Tolga Ceylan
2018-05-31 13:04:06 -07:00
committed by GitHub
parent a282005bf7
commit e1b7e30e49
3 changed files with 12 additions and 33 deletions

View File

@@ -18,16 +18,6 @@ import (
"github.com/fnproject/fn/fnext"
)
const (
runnerReconnectInterval = 5 * time.Second
// sleep time to attempt placement across all runners before retrying
retryWaitInterval = 10 * time.Millisecond
// sleep time when scaling from 0 to 1 runners
noCapacityWaitInterval = 1 * time.Second
// amount of time to wait to place a request on a runner
placementTimeout = 15 * time.Second
)
type lbAgent struct {
cfg AgentConfig
da DataAccess