Skip to content

Commit bb95e3c

Browse files
authored
Update main.go
1 parent 6c445e1 commit bb95e3c

File tree

1 file changed

+3
-1
lines changed
  • golang/gocql/connection-sigv4

1 file changed

+3
-1
lines changed

golang/gocql/connection-sigv4/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ func main() {
7878

7979
// Perform Query
8080
var keyspaceName string
81-
iter := cassandraSession.Query("SELECT keyspace_name FROM system_schema.keyspaces;").Iter()
81+
query := cassandraSession.Query("SELECT keyspace_name FROM system_schema.keyspaces;")
82+
query.Idempotent(true)
83+
iter := query.Iter()
8284

8385
defer iter.Close()
8486

0 commit comments

Comments
 (0)