Skip to content

Commit

Permalink
Smaller latency
Browse files Browse the repository at this point in the history
  • Loading branch information
magx2 committed Aug 14, 2019
1 parent 77d7db5 commit cd4051c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LatencyFilter implements Filter {

@Override
public void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain chain) throws IOException, ServletException {
sleep(random.nextInt(2_000) + 1);
sleep(random.nextInt(500) + 1);
chain.doFilter(servletRequest, servletResponse);
}

Expand Down

0 comments on commit cd4051c

Please sign in to comment.