fn: enforce container/FDK contract in dispatch (#1314)

1) FDK returned 200/502/504 codes now handled.
2) Container init timeout is now default to 5 seconds.
This commit is contained in:
Tolga Ceylan
2018-11-20 13:50:53 -08:00
committed by GitHub
parent e40816bd0e
commit 69131420bf
5 changed files with 76 additions and 67 deletions

View File

@@ -220,7 +220,7 @@ func (a *lbAgent) Submit(callI Call) error {
func (a *lbAgent) placeDetachCall(ctx context.Context, call *call) error {
errPlace := make(chan error, 1)
rw := call.w.(*DetachedResponseWriter)
rw := call.respWriter.(*DetachedResponseWriter)
go a.spawnPlaceCall(ctx, call, errPlace)
select {
case err := <-errPlace: