Executor API panics if there is err in getting function from backends (#407)

This commit is contained in:
Vishal
2017-11-22 14:06:36 -08:00
committed by Soam Vasani
parent 13a58e715d
commit 04531850d5
+3
View File
@@ -73,6 +73,9 @@ func (executor *Executor) getServiceForFunction(m *metav1.ObjectMeta) (string, e
respChan: respChan,
}
resp := <-respChan
if resp.err != nil {
return "", resp.err
}
return resp.funcSvc.Address, resp.err
}