Skip to content

fix: report bugs#70

Open
reneca wants to merge 2 commits intomainfrom
bug_fixes
Open

fix: report bugs#70
reneca wants to merge 2 commits intomainfrom
bug_fixes

Conversation

@reneca
Copy link
Contributor

@reneca reneca commented Mar 17, 2026

Bug reported to fix.

Signed-off-by: Jeremy HERGAULT <jeremy.hergault@worldline.com>
@reneca reneca requested review from Timmy80 and oschijns March 17, 2026 14:00
@reneca reneca self-assigned this Mar 17, 2026
@reneca reneca added the bug Something isn't working label Mar 17, 2026
Signed-off-by: Jeremy HERGAULT <jeremy.hergault@worldline.com>
@@ -118,11 +118,16 @@ impl Speed {

/// Getter of the duration time it must wait since the last event to target the given TPS (Transaction Per Seconds) rate
/// Consider an overhead to get a lasy duration to not overwhelmed a distant
Copy link
Contributor

Choose a reason for hiding this comment

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

"lazy duration"
"to not overwhelm a distant ...???"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes in the parameter, you can specify an overhead to lower a bit the speed if the distant are not fully healthy.
So it's a lazy duration because the speed will not be accurate. And this is done to not impact to much the distant.

/// Method to check if timer are still on existing items
fn timers_retain(&mut self, head: $p, id: $p) {
let tail = id + 1 % self.queue.max_capacity();
let tail = (id + 1) % self.queue.max_capacity();
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't it be id % (max_capacity + 1) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we want to increase by 1, without get higher than max_capacity.
So it should be (id + 1) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants