Specify explicitly that use gocql.Session.NewBatch instead of the deprecated BatchBuilder.

This commit is contained in:
xiang.wang authored and Michal Jan Matczuk committed 2020-05-29 13:05:01 +02:00
1 parent b79c395c11
commit d76ea6c678
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ type BatchBuilder struct {
// Batch returns a new BatchBuilder. // Batch returns a new BatchBuilder.
// //
// Deprecated: use session.NewBatch() instead // Deprecated: Please use gocql.Session.NewBatch() instead.
func Batch() *BatchBuilder { func Batch() *BatchBuilder {
return &BatchBuilder{} return &BatchBuilder{}
} }