Skip to content

Commit

Permalink
fix: when server is down, request needs to be handled properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
shedfreez committed Dec 11, 2024
1 parent 2d65ad3 commit 8c3c626
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ public void execute() {
|| serviceEventKey.getEventType().equals(EventType.BLOCK_ALLOW_RULE)))) {
return;
}
// when the connector type is grpc, do not notify empty event
if (StringUtils.equals(mainConnectorType, SERVER_CONNECTOR_GRPC)) {
return;
}

boolean svcDeleted = this.notifyServerEvent(
new ServerEvent(serviceEventKey, DiscoverResponse.newBuilder().build(), null));
if (!svcDeleted) {
Expand Down

0 comments on commit 8c3c626

Please sign in to comment.