Make more config parameters optional

This commit is contained in:
Dominik Werder
2022-09-08 08:15:56 +02:00
parent 3beae66bbf
commit eac9c63b82
4 changed files with 62 additions and 14 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ impl DataStore {
pub async fn new(scyconf: &ScyllaConfig, pg_client: Arc<PgClient>) -> Result<Self, Error> {
let scy = scylla::SessionBuilder::new()
.known_nodes(&scyconf.hosts)
.default_consistency(Consistency::One)
.default_consistency(Consistency::LocalOne)
.use_keyspace(&scyconf.keyspace, true)
.build()
.await