Skip to content

Commit

Permalink
fix gocql.Query.WithContext retrun shallow copy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kfrico authored and mmatczuk committed Feb 13, 2019
1 parent 0b787f2 commit 2265c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queryx_wrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2265c3f

Please sign in to comment.