Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Shortcut file-added earlier (#3596)
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges authored Oct 24, 2023
1 parent 9ba004f commit ca3c503
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/ApiService/ApiService/Functions/QueueFileChanges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ private async Async.Task<OneFuzzResultVoid> FileAdded(ResourceIdentifier storage
var container = Container.Parse(parts[0]);
var path = string.Join('/', parts.Skip(1));

// We don't want to store file added events for the events container because that causes an infinite loop
if (container == WellKnownContainers.Events) {
return Result.Ok();
}

_log.LogInformation("file added : {Container} - {Path}", container.String, path);

var (_, result) = await (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public NotificationOperations(ILogger<NotificationOperations> log, IOnefuzzConte

}
public async Async.Task<OneFuzzResultVoid> NewFiles(Container container, string filename) {
// We don't want to store file added events for the events container because that causes an infinite loop
if (container == WellKnownContainers.Events) {
return Result.Ok();
}

var result = OneFuzzResultVoid.Ok;
var notifications = GetNotifications(container);
var hasNotifications = await notifications.AnyAsync();
Expand Down

0 comments on commit ca3c503

Please sign in to comment.