use static import

This commit is contained in:
Carsten Otto
2021-11-16 22:21:07 +01:00
parent 8186a342fa
commit 6a5c0dcf21

View File

@@ -6,7 +6,7 @@ import de.cotto.lndmanagej.transactions.service.TransactionService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
import static java.util.concurrent.TimeUnit.MINUTES;
@Component
public class TransactionBackgroundLoader {
@@ -18,7 +18,7 @@ public class TransactionBackgroundLoader {
this.transactionService = transactionService;
}
@Scheduled(fixedDelay = 5, timeUnit = TimeUnit.MINUTES)
@Scheduled(fixedDelay = 5, timeUnit = MINUTES)
public void loadTransactionForOneChannel() {
channelService.getOpenChannels().stream()
.map(Channel::getChannelPoint)