mirror of
https://github.com/OMGeeky/google_bigquery.git
synced 2025-12-26 16:47:24 +01:00
borrow error
This commit is contained in:
@@ -20,7 +20,7 @@ pub async fn get_client<S: Into<String>>(
|
|||||||
None => "auth/service_account2.json".to_string(),
|
None => "auth/service_account2.json".to_string(),
|
||||||
Some(s) => s.into(),
|
Some(s) => s.into(),
|
||||||
};
|
};
|
||||||
let secret = oauth2::read_service_account_key(service_account_path)
|
let secret = oauth2::read_service_account_key(&service_account_path)
|
||||||
.await
|
.await
|
||||||
.expect(format!("Failed to read service account key from file. {}", service_account_path).as_str());
|
.expect(format!("Failed to read service account key from file. {}", service_account_path).as_str());
|
||||||
let auth = oauth2::ServiceAccountAuthenticator::builder(secret)
|
let auth = oauth2::ServiceAccountAuthenticator::builder(secret)
|
||||||
|
|||||||
Reference in New Issue
Block a user