Skip to content

Commit

Permalink
Fix catches
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalaboulhosn committed Sep 12, 2023
1 parent 079acc4 commit af96f23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
public class SubscribeAsyncLimitedConcurrencyExample {
public static void main(String... args) throws Exception {
// TODO(developer): Replace these variables before running the sample.
String projectId = "my-project";
String subscriptionId = "my-subscription";
String projectId = "ordering-keys-testing";
String subscriptionId = "threads-test";

subscribeAsyncLimitedConcurrencyExample(projectId, subscriptionId);
}
Expand Down Expand Up @@ -145,7 +145,8 @@ public static void subscribeAsyncLimitedConcurrencyExample(
try {
Thread.sleep(30000);
} catch (Exception e) {

System.out.println("Could not sleep: " + e);
return;
}
printThreads();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public static void subscribeAsyncUnlimitedConcurrencyExample(
try {
Thread.sleep(30000);
} catch (Exception e) {

System.out.println("Could not sleep: " + e);
return;
}
printThreads();
for (Subscriber subscriber : subscribers) {
Expand Down

0 comments on commit af96f23

Please sign in to comment.