fn: removing unused/dead code (#1051)

This commit is contained in:
Tolga Ceylan
2018-06-08 15:51:19 -07:00
committed by GitHub
parent 8155779f96
commit 8f969918bd

View File

@@ -140,18 +140,6 @@ func (a *lbAgent) Close() error {
return err
}
func GetGroupID(call *models.Call) string {
// TODO until fn supports metadata, allow LB Group ID to
// be overridden via configuration.
// Note that employing this mechanism will expose the value of the
// LB Group ID to the function as an environment variable!
lbgID := call.Config["FN_LB_GROUP_ID"]
if lbgID == "" {
return "default"
}
return lbgID
}
func (a *lbAgent) Submit(callI Call) error {
if !a.shutWg.AddSession(1) {
return models.ErrCallTimeoutServerBusy