Skip to content

Commit 6a74a50

Browse files
committed
feat: add support for scylladb
Resolves #177
1 parent 8c27f20 commit 6a74a50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/db/providers/cassandradb/provider.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"crypto/x509"
66
"fmt"
77
"strings"
8+
"time"
89

910
"github.com/authorizerdev/authorizer/server/constants"
1011
"github.com/authorizerdev/authorizer/server/crypto"
@@ -96,6 +97,8 @@ func NewProvider() (*provider, error) {
9697
NumRetries: 3,
9798
}
9899
cassandraClient.Consistency = gocql.LocalQuorum
100+
cassandraClient.ConnectTimeout = 10 * time.Second
101+
cassandraClient.ProtoVersion = 4
99102

100103
session, err := cassandraClient.CreateSession()
101104
if err != nil {

0 commit comments

Comments
 (0)