mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Replace panic on enqueue for LB agent with error. (#1004)
This commit is contained in:
@@ -184,8 +184,8 @@ func (a *lbAgent) Submit(callI Call) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *lbAgent) Enqueue(context.Context, *models.Call) error {
|
func (a *lbAgent) Enqueue(context.Context, *models.Call) error {
|
||||||
logrus.Fatal("Enqueue not implemented. Panicking.")
|
logrus.Error("Enqueue not implemented")
|
||||||
return nil
|
return errors.New("Enqueue not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *lbAgent) scheduleCallEnd(fn func()) {
|
func (a *lbAgent) scheduleCallEnd(fn func()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user