X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FStartupHandler.kt;h=4d815762a64c5344ab18f9e90b3066873934c01f;hb=4af887c75667793c197b564f16b7e95b1f63cbc7;hp=c3b69f0b115c9f18b9e329789f55c0d3e0894440;hpb=5cfe9916e6b52b68a403873e35683ce242be4793;p=Sone.git diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/StartupHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/StartupHandler.kt index c3b69f0..4d81576 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/StartupHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/StartupHandler.kt @@ -30,10 +30,10 @@ import javax.inject.* class StartupHandler @Inject constructor( private val notificationManager: NotificationManager, @Named("startup") private val notification: TemplateNotification, - private val ticker: ScheduledExecutorService) { + @Named("notification") private val ticker: ScheduledExecutorService) { @Subscribe - fun startup(startup: Startup) { + fun startup(@Suppress("UNUSED_PARAMETER") startup: Startup) { notificationManager.addNotification(notification) ticker.schedule({ notificationManager.removeNotification(notification) }, 2, MINUTES) }