mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-11 09:41:37 +00:00
Fix condition for triggering new unique report event (#422)
This commit is contained in:
parent
70d41d1cc5
commit
2e2ba988ee
@ -69,10 +69,11 @@ async fn upload_deduped(report: &CrashReport, container: &BlobContainerUrl) -> R
|
||||
.put(deduped_url)
|
||||
.json(report)
|
||||
// Conditional PUT, only if-not-exists.
|
||||
// https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations
|
||||
.header("If-None-Match", "*")
|
||||
.send_retry_default()
|
||||
.await?;
|
||||
if result.status() != StatusCode::NOT_MODIFIED {
|
||||
if result.status() == StatusCode::CREATED {
|
||||
event!(new_unique_report;);
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
x
Reference in New Issue
Block a user