mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Addressing review comments
reverting query string caching in favour of Go 1.9 sqlx features moving context definition out of call.End to upper level
This commit is contained in:
@@ -222,9 +222,8 @@ func (a *agent) Submit(callI Call) error {
|
||||
|
||||
a.stats.Complete()
|
||||
|
||||
// TODO if the context is timed out here we need to allocate some more time...
|
||||
// right now this only works b/c the db isn't using the context
|
||||
call.End(ctx, err)
|
||||
// TODO if the context is timed out here we need to allocate new one
|
||||
call.End(context.Background(), err)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user