mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user