Skip to content

Commit 5d2d1c3

Browse files
committed
fix: allow setting host for cassandradb without prot
1 parent 6da0a85 commit 5d2d1c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/db/providers/cassandradb/provider.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ func NewProvider() (*provider, error) {
2929
dbPort := memorystore.RequiredEnvStoreObj.GetRequiredEnv().DatabasePort
3030
if dbPort != "" && dbHost != "" {
3131
dbURL = fmt.Sprintf("%s:%s", dbHost, dbPort)
32+
} else if dbHost != "" {
33+
dbURL = dbHost
3234
}
3335
}
3436

0 commit comments

Comments
 (0)