Skip to content

Commit

Permalink
use ExponentialBackoffRetryPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Mar 12, 2024
1 parent 77c0f3d commit 9ae999f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/delegation_backend/aws_keyspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func InitializeKeyspaceSession(config *AwsKeyspacesConfig) (*gocql.Session, erro

cluster.Consistency = gocql.LocalQuorum
cluster.DisableInitialHostLookup = false
cluster.RetryPolicy = &gocql.ExponentialBackoffRetryPolicy{NumRetries: 10, Min: 100 * time.Millisecond, Max: 10 * time.Second}

session, err := cluster.CreateSession()
if err != nil {
Expand Down

0 comments on commit 9ae999f

Please sign in to comment.