Skip to content

Commit 9676605

Browse files
chore: change type of event publisher
1 parent 1a938af commit 9676605

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/main/kotlin/application/presenter/EventPublisher.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88

99
package application.presenter
1010

11-
import entities.events.Event
12-
1311
/**
1412
* The publisher of events to the microservices.
1513
*/
16-
interface EventPublisher<in E : Event<Any>> {
14+
interface EventPublisher<E> {
1715

1816
/**
1917
* Publish the event.

src/main/kotlin/application/services/EventService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import io.reactivex.rxjava3.disposables.Disposable
1919
* The Application service responsible to start the consumer and to propagate the events to the publisher.
2020
*/
2121
class EventService<in C>(
22-
private val eventPublisher: EventPublisher<Event<Any>>,
22+
private val eventPublisher: EventPublisher<Event<*>>,
2323
private val eventConsumer: EventConsumer<C>
2424
) {
2525

0 commit comments

Comments
 (0)