mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: removing unused/dead code (#1051)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user