Skip to content

Conversation

@wlawt
Copy link
Contributor

@wlawt wlawt commented Nov 7, 2025

This lets us not block on waiting for a response from the Audit queue

Also made the Bundle Status text black because the grey color was too similar to the white box, which makes it hard to read lol

Tested locally e2e again, and everything still works.

};
if let Err(e) = self.audit_publisher.publish(audit_event).await {
warn!(message = "Failed to publish audit event", bundle_id = %accepted_bundle.uuid(), error = %e);
let (audit_tx, audit_rx) = mpsc::unbounded_channel::<BundleEvent>();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might want a cap on this? (could do in a follow up)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll probably want to initialize the queue in main, then have the ingress-service just take the queue.

I think this code will have a race condition in that if the queue is dropped before this method it'll never be processed by the spawned task.

If you setup the queue in main, connect it to the publisher there then pass it as an arg to this struct it should work

@wlawt wlawt requested a review from danyalprout November 7, 2025 18:13
@wlawt wlawt merged commit e31f12b into master Nov 7, 2025
13 checks passed
@wlawt wlawt deleted the audit-async branch November 7, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants