mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user