Skip to content

Commit

Permalink
fix (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies authored Dec 4, 2024
1 parent f76a0ff commit cd64b5e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/UserGuide/Master/Tree/API/Programming-Java-Native-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ for (int i = 0; i < 8; ++i) {
.buildPushConsumer()) {
consumer2.open();
consumer2.subscribe(TOPIC_2);
} catch (final IOException e) {
// block the consumer main thread
Thread.sleep(Long.MAX_VALUE);
} catch (final IOException | InterruptedException e) {
throw new RuntimeException(e);
}
});
Expand Down
4 changes: 3 additions & 1 deletion src/UserGuide/latest/API/Programming-Java-Native-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,9 @@ for (int i = 0; i < 8; ++i) {
.buildPushConsumer()) {
consumer2.open();
consumer2.subscribe(TOPIC_2);
} catch (final IOException e) {
// block the consumer main thread
Thread.sleep(Long.MAX_VALUE);
} catch (final IOException | InterruptedException e) {
throw new RuntimeException(e);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,9 @@ for (int i = 0; i < 8; ++i) {
.buildPushConsumer()) {
consumer2.open();
consumer2.subscribe(TOPIC_2);
} catch (final IOException e) {
// block the consumer main thread
Thread.sleep(Long.MAX_VALUE);
} catch (final IOException | InterruptedException e) {
throw new RuntimeException(e);
}
});
Expand Down
4 changes: 3 additions & 1 deletion src/zh/UserGuide/latest/API/Programming-Java-Native-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@ for (int i = 0; i < 8; ++i) {
.buildPushConsumer()) {
consumer2.open();
consumer2.subscribe(TOPIC_2);
} catch (final IOException e) {
// block the consumer main thread
Thread.sleep(Long.MAX_VALUE);
} catch (final IOException | InterruptedException e) {
throw new RuntimeException(e);
}
});
Expand Down

0 comments on commit cd64b5e

Please sign in to comment.