Skip to content

Commit

Permalink
Issue resilience4j#9: Fixed formatting in Application.java
Browse files Browse the repository at this point in the history
- Indentation were not current in java file
  • Loading branch information
maheshshelke committed Jun 20, 2024
1 parent 9935428 commit cdb0ae4
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/main/java/io/github/robwin/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,25 +64,24 @@ public void onEntryReplacedEvent(EntryReplacedEvent<CircuitBreaker> entryReplace
};
}

@Bean
public RegistryEventConsumer<Retry> myRetryRegistryEventConsumer() {

return new RegistryEventConsumer<Retry>() {
@Override
public void onEntryAddedEvent(EntryAddedEvent<Retry> entryAddedEvent) {
entryAddedEvent.getAddedEntry().getEventPublisher().onEvent(event -> LOG.info(event.toString()));
}
@Bean
public RegistryEventConsumer<Retry> myRetryRegistryEventConsumer() {

@Override
public void onEntryRemovedEvent(EntryRemovedEvent<Retry> entryRemoveEvent) {
return new RegistryEventConsumer<Retry>() {
@Override
public void onEntryAddedEvent(EntryAddedEvent<Retry> entryAddedEvent) {
entryAddedEvent.getAddedEntry().getEventPublisher().onEvent(event -> LOG.info(event.toString()));
}

}
@Override
public void onEntryRemovedEvent(EntryRemovedEvent<Retry> entryRemoveEvent) {

@Override
public void onEntryReplacedEvent(EntryReplacedEvent<Retry> entryReplacedEvent) {
}

}
};
}
@Override
public void onEntryReplacedEvent(EntryReplacedEvent<Retry> entryReplacedEvent) {

}
};
}
}

0 comments on commit cdb0ae4

Please sign in to comment.