mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Use the base interface for the type check
This commit is contained in:
@@ -121,7 +121,7 @@ func (tr *placerTracker) RetryAllBackoff(numOfRunners int, err error) bool {
|
||||
// See: runner_fninvoke.handleFnInvokeCall2
|
||||
if models.IsFuncError(err) {
|
||||
// We also sanity check for a 502 before returning.
|
||||
w, ok := err.(models.APIErrorWrapper)
|
||||
w, ok := err.(models.APIError)
|
||||
if ok {
|
||||
if 502 == w.Code() {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user