Executor API panics if there is err in getting function from backends (#407)
This commit is contained in:
@@ -73,6 +73,9 @@ func (executor *Executor) getServiceForFunction(m *metav1.ObjectMeta) (string, e
|
|||||||
respChan: respChan,
|
respChan: respChan,
|
||||||
}
|
}
|
||||||
resp := <-respChan
|
resp := <-respChan
|
||||||
|
if resp.err != nil {
|
||||||
|
return "", resp.err
|
||||||
|
}
|
||||||
return resp.funcSvc.Address, resp.err
|
return resp.funcSvc.Address, resp.err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user