Skip to content

Commit

Permalink
refactor - process 함수명 routeRequest 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Stark-Industries0417 committed Feb 19, 2025
1 parent a8e5c0c commit 2c63e33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WebSocketController(
.flatMap { message ->
val payload = message.payloadAsText
Mono.fromCallable {
requestService.process(payload)
requestService.routeRequest(payload)
}
.doOnSuccess { response -> logger.info("{}", response) }
.onErrorResume { e ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RequestService(

private val logger = LoggerFactory.getLogger(RequestService::class.java)

fun process(payload: String): ApiResponse<*> {
fun routeRequest(payload: String): ApiResponse<*> {
val requestMap: Map<String, Any> = objectMapper.readValue(payload, Map::class.java) as Map<String, Any>
val type = requestMap["type"] as? String ?: throw IllegalArgumentException("Missing 'type'")

Expand Down

0 comments on commit 2c63e33

Please sign in to comment.