summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-07-29 21:55:06 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-07-29 21:55:06 +0200
commitffd892ad332c994b8ed9536ff473c3037e05bc4d (patch)
tree770984504bc5e729b1e38fc9f584301893772255 /src/main.rs
parent60af8fbaa361fc233236675c20b0489f05288a59 (diff)
chore: use driver url as env variable
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 5dc7607..b854f49 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -18,7 +18,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let bot = Bot::from_env().auto_send();
let config = Config::from_env().unwrap();
- let driver: WebDriver = browser::init().await;
+ let driver: WebDriver = browser::init(&config.driver_url).await;
match browser::login(&driver, &config).await {
Ok(_) => {}
Err(e) => {