slight code cleanup; add 'buy' to keywords

This commit is contained in:
0xf8 2023-04-12 03:51:02 -04:00
parent 43d4df272a
commit 638c847528
Signed by: 0xf8
GPG Key ID: 446580D758689584
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,8 @@
"meet",
"upload",
"login",
"send"
"send",
"buy"
],
"currencies":[
"$", "£", "€",

View File

@ -34,8 +34,7 @@ pub async fn restore_session(session_file: &Path) -> anyhow::Result<(Client, Opt
let client = Client::builder()
.homeserver_url(client_session.homeserver)
.sled_store(client_session.db_path, Some(&client_session.passphrase))
.unwrap()
.sled_store(client_session.db_path, Some(&client_session.passphrase))?
.build()
.await?;
@ -61,7 +60,7 @@ pub async fn login(data_dir: &Path, session_file: &Path) -> anyhow::Result<Clien
match client
.login_username(&user, &password)
.initial_device_display_name("vcxz bot")
.initial_device_display_name("scam-police")
.send()
.await
{