Skip to content

Commit

Permalink
converted rate limiter query unit tests to table test
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Apr 22, 2024
1 parent da27a84 commit f9eed15
Show file tree
Hide file tree
Showing 3 changed files with 308 additions and 200 deletions.
2 changes: 1 addition & 1 deletion x/crosschain/keeper/grpc_query_cctx_rate_limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (k Keeper) ListPendingCctxWithinRateLimit(c context.Context, req *types.Que
}

// calculate the rate limiter sliding window left boundary (inclusive)
leftWindowBoundary := height - rateLimitFlags.Window
leftWindowBoundary := height - rateLimitFlags.Window + 1
if leftWindowBoundary < 0 {
leftWindowBoundary = 0
}
Expand Down
Loading

0 comments on commit f9eed15

Please sign in to comment.