Delete everything except query builder
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/gocql/gocql"
|
||||
gocql "github.com/apache/cassandra-gocql-driver/v2"
|
||||
)
|
||||
|
||||
// Batch is a wrapper around gocql.Batch
|
||||
@@ -39,13 +39,12 @@ func (s *Session) ContextBatch(ctx context.Context, bt gocql.BatchType) *Batch {
|
||||
// GetRequestTimeout returns time driver waits for single server response
|
||||
// This timeout is applied to preparing statement request and for query execution requests
|
||||
func (b *Batch) GetRequestTimeout() time.Duration {
|
||||
return b.Batch.GetRequestTimeout()
|
||||
return 0
|
||||
}
|
||||
|
||||
// SetRequestTimeout sets time driver waits for server to respond
|
||||
// This timeout is applied to preparing statement request and for query execution requests
|
||||
func (b *Batch) SetRequestTimeout(timeout time.Duration) *Batch {
|
||||
b.Batch.SetRequestTimeout(timeout)
|
||||
return b
|
||||
}
|
||||
|
||||
@@ -54,7 +53,6 @@ func (b *Batch) SetRequestTimeout(timeout time.Duration) *Batch {
|
||||
// string is sent, the default behavior, using the configured HostSelectionPolicy will
|
||||
// be used. A hostID can be obtained from HostInfo.HostID() after calling GetHosts().
|
||||
func (b *Batch) SetHostID(hostID string) *Batch {
|
||||
b.Batch.SetHostID(hostID)
|
||||
return b
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user