Skip to content

Commit 2a30606

Browse files
committed
use ExponentialBackoffRetryPolicy
1 parent 508279c commit 2a30606

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/delegation_backend/aws_keyspaces.go

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func InitializeKeyspaceSession(config *AwsKeyspacesConfig) (*gocql.Session, erro
6666

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

7071
session, err := cluster.CreateSession()
7172
if err != nil {

0 commit comments

Comments
 (0)