File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1073,6 +1073,8 @@ func (q *Query) CustomPayload(customPayload map[string][]byte) *Query {
10731073 return q
10741074}
10751075
1076+ // Deprecated: Context retrieval is deprecated. Pass context directly to execution methods
1077+ // like ExecContext or IterContext instead.
10761078func (q * Query ) Context () context.Context {
10771079 if q .context == nil {
10781080 return context .Background ()
@@ -1888,6 +1890,8 @@ func (b *Batch) SetConsistency(c Consistency) {
18881890 b .Cons = c
18891891}
18901892
1893+ // Deprecated: Context retrieval is deprecated. Pass context directly to execution methods
1894+ // like ExecContext or IterContext instead.
18911895func (b * Batch ) Context () context.Context {
18921896 if b .context == nil {
18931897 return context .Background ()
You can’t perform that action at this time.
0 commit comments