Skip to content

Commit

Permalink
chore: make scylla hosts as slice (#5107)
Browse files Browse the repository at this point in the history
Co-authored-by: Rohith BCS <[email protected]>
  • Loading branch information
cisse21 and Rohith BCS authored Sep 17, 2024
1 parent b4f18d2 commit 0ada31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/dedup/scylla/scylla.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (d *ScyllaDB) Commit(keys []string) error {
}

func New(conf *config.Config, stats stats.Stats) (*ScyllaDB, error) {
cluster := gocql.NewCluster(conf.GetString("Scylla.Hosts", "localhost:9042"))
cluster := gocql.NewCluster(conf.GetReloadableStringSliceVar([]string{"localhost:9042"}, "Scylla.Hosts").Load()...)
cluster.Consistency = gocql.Quorum
cluster.RetryPolicy = &gocql.ExponentialBackoffRetryPolicy{
NumRetries: conf.GetInt("Scylla.NumRetries", 3),
Expand Down

0 comments on commit 0ada31f

Please sign in to comment.