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
+3 -3
View File
@@ -27,7 +27,7 @@ impl From<QueryError> for Error {
pub async fn list_pkey() -> Result<(), Error> {
let scy = SessionBuilder::new()
.known_node("127.0.0.1:19042")
.default_consistency(Consistency::One)
.default_consistency(Consistency::LocalOne)
.use_keyspace("ks1", true)
.build()
.await?;
@@ -68,7 +68,7 @@ pub async fn list_pkey() -> Result<(), Error> {
pub async fn list_pulses() -> Result<(), Error> {
let scy = SessionBuilder::new()
.known_node("127.0.0.1:19042")
.default_consistency(Consistency::One)
.default_consistency(Consistency::LocalOne)
.use_keyspace("ks1", true)
.build()
.await?;
@@ -108,7 +108,7 @@ pub async fn list_pulses() -> Result<(), Error> {
pub async fn fetch_events(opts: FetchEvents) -> Result<(), Error> {
let scy = SessionBuilder::new()
.known_nodes(&opts.scylla)
.default_consistency(Consistency::One)
.default_consistency(Consistency::LocalOne)
.use_keyspace("ks1", true)
.build()
.await?;