fix gocql.Query.WithContext retrun shallow copy bug

This commit is contained in:
Ken authored and Michal Matczuk committed 2019-02-13 10:54:45 +01:00
1 parent 0b787f2f06
commit 2265c3fdbb
1 file changed
+1 -1
+1 -1
View File
@@ -86,7 +86,7 @@ func (q *Queryx) RoutingKey(routingKey []byte) *Queryx {
// query, queries will be canceled and return once the context is
// canceled.
func (q *Queryx) WithContext(ctx context.Context) *Queryx {
q.Query.WithContext(ctx)
q.Query = q.Query.WithContext(ctx)
return q
}