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:
@@ -287,11 +287,7 @@ func (c *call) End(ctx context.Context, err error) {
|
||||
// XXX (reed): delete MQ message, eventually
|
||||
}
|
||||
|
||||
// need newer context because original one may be modified
|
||||
// and no longer be valid for further context-bound operations
|
||||
if err := c.ds.InsertCall(context.Background(), c.Call); err != nil {
|
||||
// TODO we should just log this error not return it to user?
|
||||
// just issue storing call status but call is run
|
||||
if err := c.ds.InsertCall(opentracing.ContextWithSpan(ctx, span), c.Call); err != nil {
|
||||
logrus.WithError(err).Error("error inserting call into datastore")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user