Skip to content

Commit

Permalink
Fix deprecated method in readme
Browse files Browse the repository at this point in the history
Switch to recordRunnable for the timer example.
  • Loading branch information
brharrington authored Jun 5, 2024
1 parent e87d069 commit 841f678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class Server {

public Response handle(Request req) {
final long s = System.nanoTime();
requestLatency.record(() -> {
requestLatency.recordRunnable(() -> {
try {
Response res = doSomething(req);

Expand Down

0 comments on commit 841f678

Please sign in to comment.