Skip to content

Commit

Permalink
add reset method to RateLimiter class
Browse files Browse the repository at this point in the history
  • Loading branch information
1yd1a committed Nov 30, 2023
1 parent 3d2975a commit 0f6b553
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/team766/library/RateLimiter.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ public boolean next() {
return false;
}
}

public void reset(){
nextTime = 0;
}

}

0 comments on commit 0f6b553

Please sign in to comment.