Skip to content

Commit

Permalink
chore: ktlint format
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Aug 4, 2024
1 parent 3a73b72 commit 11a6fcc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import com.oksusu.susu.api.extension.remoteIp
import com.oksusu.susu.api.extension.requestParam
import com.oksusu.susu.client.common.coroutine.ErrorPublishingCoroutineExceptionHandler
import com.oksusu.susu.client.discord.DiscordClient
import com.oksusu.susu.client.discord.model.DiscordMessageModel
import com.oksusu.susu.common.extension.format
import com.oksusu.susu.common.extension.isProd
import com.oksusu.susu.common.extension.mdcCoroutineScope
import com.oksusu.susu.common.extension.supressedErrorStack
Expand All @@ -19,11 +17,9 @@ import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springframework.context.event.EventListener
import org.springframework.core.env.Environment
import org.springframework.core.io.buffer.DataBufferUtils
import java.time.LocalDateTime


@SusuEventListener
class DiscordErrorAlarmEventListener (
class DiscordErrorAlarmEventListener(
private val environment: Environment,
private val discordClient: DiscordClient,
private val coroutineExceptionHandler: ErrorPublishingCoroutineExceptionHandler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ import com.oksusu.susu.api.event.model.SlackErrorAlarmEvent
import com.oksusu.susu.api.extension.remoteIp
import com.oksusu.susu.api.extension.requestParam
import com.oksusu.susu.client.common.coroutine.ErrorPublishingCoroutineExceptionHandler
import com.oksusu.susu.client.discord.DiscordClient
import com.oksusu.susu.client.discord.model.DiscordMessageModel
import com.oksusu.susu.client.slack.SlackClient
import com.oksusu.susu.client.slack.model.SlackMessageModel
import com.oksusu.susu.common.extension.format
import com.oksusu.susu.common.extension.isProd
import com.oksusu.susu.common.extension.mdcCoroutineScope
import com.oksusu.susu.common.extension.supressedErrorStack
Expand All @@ -21,7 +17,6 @@ import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springframework.context.event.EventListener
import org.springframework.core.env.Environment
import org.springframework.core.io.buffer.DataBufferUtils
import java.time.LocalDateTime

@SusuEventListener
class SlackErrorAlarmEventListener(
Expand Down Expand Up @@ -63,4 +58,3 @@ class SlackErrorAlarmEventListener(
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ internal data class ErrorMessage(
)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.oksusu.susu.api.exception.advice
import com.oksusu.susu.api.common.dto.ErrorResponse
import com.oksusu.susu.api.event.model.DiscordErrorAlarmEvent
import com.oksusu.susu.api.event.model.SentryCaptureExceptionEvent
import com.oksusu.susu.api.event.model.SlackErrorAlarmEvent
import io.github.oshai.kotlinlogging.KotlinLogging
import jakarta.validation.ConstraintViolationException
import kotlinx.coroutines.CancellationException
Expand Down

0 comments on commit 11a6fcc

Please sign in to comment.