Skip to content

Commit

Permalink
Fix batch creation to match new gocql
Browse files Browse the repository at this point in the history
`gocql.NewBatch` is now deprecated (and broken)
switching to use `session.NewBatch`

Fixes: #31
  • Loading branch information
fruch committed May 26, 2020
1 parent 2c94d92 commit 6404bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modes.go
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ func DoBatchedWrites(session *gocql.Session, resultChannel chan Result, workload
request := fmt.Sprintf("INSERT INTO %s.%s (pk, ck, v) VALUES (?, ?, ?)", keyspaceName, tableName)

RunTest(resultChannel, workload, rateLimiter, func(rb *ResultBuilder) (error, time.Duration) {
batch := gocql.NewBatch(gocql.UnloggedBatch)
batch := session.NewBatch(gocql.UnloggedBatch)
batchSize := 0

currentPk := workload.NextPartitionKey()
Expand Down

0 comments on commit 6404bd7

Please sign in to comment.