Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Oct 21, 2024
1 parent 4acd391 commit 0a2e0f4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import java.nio.file.Files
import java.nio.file.Path
import java.util.*
import java.util.concurrent.ConcurrentHashMap
import kotlin.io.path.extension

class ShowtimeBackend(
val rootConfig: RootConfig,
Expand Down Expand Up @@ -215,7 +216,7 @@ class ShowtimeBackend(
}
}

this.environment.monitor.subscribe(Routing.RoutingCallStarted) { call: RoutingApplicationCall ->
this.monitor.subscribe(RoutingRoot.RoutingCallStarted) { call: RoutingCall ->
call.attributes.put(TimeToProcess, System.currentTimeMillis())
val userAgent = call.request.userAgent()
val trueIp = call.request.origin.remoteHost
Expand All @@ -234,7 +235,7 @@ class ShowtimeBackend(
} */
}

this.environment.monitor.subscribe(Routing.RoutingCallFinished) { call: RoutingApplicationCall ->
this.environment.monitor.subscribe(RoutingRoot.RoutingCallFinished) { call: RoutingCall ->
val originalStartTime = call.attributes[TimeToProcess]

val queryString = call.request.queryString()
Expand Down

0 comments on commit 0a2e0f4

Please sign in to comment.