Remove unused Batch.ctx
This commit is contained in:
@@ -20,7 +20,6 @@ type batchItem struct {
|
||||
type Batch struct {
|
||||
conn *Conn
|
||||
items []*batchItem
|
||||
ctx context.Context
|
||||
err error
|
||||
|
||||
mrr *pgconn.MultiResultReader
|
||||
@@ -55,8 +54,6 @@ func (b *Batch) Send(ctx context.Context) error {
|
||||
return b.err
|
||||
}
|
||||
|
||||
b.ctx = ctx
|
||||
|
||||
batch := &pgconn.Batch{}
|
||||
|
||||
for _, bi := range b.items {
|
||||
|
||||
Reference in New Issue
Block a user