Skip to content

Conversation

@LPardue
Copy link
Contributor

@LPardue LPardue commented Feb 13, 2026

The generic type should probably be defined outside of the recovery module, but this was just an example to help further the discussions

self.lost_packets = latest.lost_packets;
emit_event = true;

ex_data.insert(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

You could potentially further change ex_data to be more than a type def, and have a method that takes a CustomQlogField to simplify all of the call sites that want to insert

#[derive(Serialize)]
struct TotalAndDelta {
total: Option<u64>,
delta: Option<u64>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These could be values rather than options, just using it to demonstrate the power of relying on the Serialize properties

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.

1 participant