We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5899fdf commit ca9e65eCopy full SHA for ca9e65e
examples/cloud.rs
@@ -1,3 +1,4 @@
1
+use std::env;
2
use std::path::Path;
3
4
use anyhow::Result;
@@ -6,8 +7,10 @@ use scylla::CloudSessionBuilder;
6
7
#[tokio::main]
8
async fn main() -> Result<()> {
9
println!("Connecting to SNI proxy as described in cloud config yaml ...");
-
10
- let session = CloudSessionBuilder::new(Path::new("examples/config_data.yaml"))
+ let config_path = env::args()
11
+ .nth(1)
12
+ .unwrap_or("examples/config_data.yaml".to_owned());
13
+ let session = CloudSessionBuilder::new(Path::new(&config_path))
14
.unwrap()
15
.build()
16
.await
0 commit comments