1 | package org.cardanofoundation.explorer.api.config; | |
2 | ||
3 | import lombok.extern.slf4j.Slf4j; | |
4 | ||
5 | import org.springframework.boot.CommandLineRunner; | |
6 | import org.springframework.context.annotation.Bean; | |
7 | import org.springframework.context.annotation.Configuration; | |
8 | ||
9 | import org.cardanofoundation.explorer.api.event.blocksync.BlockEventListener; | |
10 | import org.cardanofoundation.explorer.api.event.blocksync.BlockNotificationHandler; | |
11 | ||
12 | @Configuration | |
13 | @Slf4j | |
14 | public class PostgresListenerConfig { | |
15 | ||
16 | @Bean | |
17 | CommandLineRunner startListener( | |
18 | BlockNotificationHandler handler, BlockEventListener blockEventListener) { | |
19 |
2
1. startListener : replaced return value with null for org/cardanofoundation/explorer/api/config/PostgresListenerConfig::startListener → NO_COVERAGE 2. lambda$startListener$0 : removed call to org/cardanofoundation/explorer/api/event/blocksync/BlockEventListener::listenForNotifications → NO_COVERAGE |
return (args) -> blockEventListener.listenForNotifications(handler); |
20 | } | |
21 | } | |
Mutations | ||
19 |
1.1 2.2 |