Skip to content

Commit

Permalink
⚗️ fake busy work
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Pe committed Mar 18, 2024
1 parent e8d0388 commit 08d50cd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ public class ServiceInstanceRestController {
public List<ServiceInstance> serviceInstancesByApplicationName(
@PathVariable String applicationName) {
log.info("Request handling...");
busyWork(200);
return this.discoveryClient.getInstances(applicationName);
}

public static void busyWork(int durationInMilliseconds) {
long startTime = System.currentTimeMillis();
while ((System.currentTimeMillis() - startTime) < durationInMilliseconds) {
// Leere Schleife, um Zeit zu verschwenden
}
}
}

0 comments on commit 08d50cd

Please sign in to comment.