Update Analytics req + Fix versions list (#529)

* Update Analytics req + Fix versions list

* Fix sentry support

* Fix lint
This commit is contained in:
Geometrically
2023-02-01 10:08:02 -07:00
committed by GitHub
parent 26533c47e7
commit afdab0300e
21 changed files with 441 additions and 160 deletions

View File

@@ -34,7 +34,7 @@ pub async fn authorize_account(
key_id: &str,
application_key: &str,
) -> Result<AuthorizationData, FileHostingError> {
let combined_key = format!("{}:{}", key_id, application_key);
let combined_key = format!("{key_id}:{application_key}");
let formatted_key = format!("Basic {}", base64::encode(combined_key));
let response = reqwest::Client::new()

View File

@@ -69,7 +69,7 @@ impl FileHost for S3Host {
self.bucket
.put_object_with_content_type(
format!("/{}", file_name),
format!("/{file_name}"),
&file_bytes,
content_type,
)
@@ -98,7 +98,7 @@ impl FileHost for S3Host {
file_name: &str,
) -> Result<DeleteFileData, FileHostingError> {
self.bucket
.delete_object(format!("/{}", file_name))
.delete_object(format!("/{file_name}"))
.await
.map_err(|_| {
FileHostingError::S3Error(