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:
Denis Makogon
2017-09-06 09:21:59 +03:00
parent 6a541139a9
commit 9a89366d1b
5 changed files with 86 additions and 97 deletions

View File

@@ -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
}