Skip to content

Commit

Permalink
replenish credits when below threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
lulf committed Apr 22, 2024
1 parent fd8ecc7 commit 0b62ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/src/channel_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ impl CreditFlowControl {
}
}
CreditFlowPolicy::MinThreshold(threshold) => {
if self.credits <= threshold {
if self.credits < threshold {
let amount = self.received;
self.received = 0;
self.credits += amount;
Expand Down

0 comments on commit 0b62ac6

Please sign in to comment.