Skip to content

Commit a69569b

Browse files
author
eutkin
committed
ISSUE-694 BeforeDestroy realization
1 parent 8bdda5b commit a69569b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/src/test/java/io/scalecube/services/sut/AnnotationServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class AnnotationServiceImpl implements AnnotationService {
1212
private ReplayProcessor<ServiceDiscoveryEvent> serviceDiscoveryEvents;
1313

1414
@AfterConstruct
15-
void init(Microservices microservices) {
15+
private void init(Microservices microservices) {
1616
this.serviceDiscoveryEvents = ReplayProcessor.create();
1717
microservices.discovery().listenDiscovery().subscribe(serviceDiscoveryEvents);
1818
}
@@ -23,7 +23,7 @@ public Flux<ServiceDiscoveryEvent.Type> serviceDiscoveryEventTypes() {
2323
}
2424

2525
@BeforeDestroy
26-
void destroy(Microservices microservices) {
26+
private void destroy(Microservices microservices) {
2727
this.serviceDiscoveryEvents = ReplayProcessor.create();
2828
microservices.discovery().listenDiscovery().subscribe(serviceDiscoveryEvents);
2929
}

0 commit comments

Comments
 (0)