remove thread sleep
This commit is contained in:
@@ -54,11 +54,11 @@ public class ProductController {
|
|||||||
count++;
|
count++;
|
||||||
logger.info(String.format("product start from %s: %d", HOSTNAME, count));
|
logger.info(String.format("product start from %s: %d", HOSTNAME, count));
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
Thread.sleep(1000);
|
// Thread.sleep(900);
|
||||||
} catch (InterruptedException e) {
|
// } catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
}
|
// }
|
||||||
|
|
||||||
return ResponseEntity.ok(String.format(RESPONSE_STRING_FORMAT, HOSTNAME, count));
|
return ResponseEntity.ok(String.format(RESPONSE_STRING_FORMAT, HOSTNAME, count));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user