Skip to content

Commit

Permalink
use cur slot instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
0xripleys committed Mar 30, 2023
1 parent d662ae1 commit 9c99a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token-lending/sdk/src/state/rate_limiter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl RateLimiter {
let slot_start = if config.window_duration != 0 {
cur_slot / config.window_duration * config.window_duration
} else {
0
cur_slot
};

Self {
Expand Down

0 comments on commit 9c99a83

Please sign in to comment.