Skip to content

Commit

Permalink
casds: More lax timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Apr 5, 2023
1 parent 18a9aad commit f0ec716
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blockstore/cassbs/cassandra_ds.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func NewCassandraDS(connectString string) (*CassandraDatastore, error) {
cluster := gocql.NewCluster(connectString)
cluster.Consistency = gocql.Quorum
cluster.RetryPolicy = &gocql.SimpleRetryPolicy{NumRetries: 30}
cluster.Timeout = 30 * time.Second
cluster.ConnectTimeout = 30 * time.Second

session, err := cluster.CreateSession()
if err != nil {
return nil, fmt.Errorf("creating new Cassandra session: %w", err)
Expand Down

0 comments on commit f0ec716

Please sign in to comment.