refactor: replace HttpTrace by HttpExchange

This commit is contained in:
Gauthier Roebroeck 2022-11-14 14:02:46 +08:00
parent 9c0905ef91
commit 0112fcda1e
2 changed files with 14 additions and 14 deletions

View file

@ -0,0 +1,14 @@
package org.gotson.komga.infrastructure.httpexchange
import org.springframework.boot.actuate.web.exchanges.InMemoryHttpExchangeRepository
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class HttpExchangeConfiguration {
private val httpExchangeRepository = InMemoryHttpExchangeRepository()
@Bean
fun httpExchangeRepository() = httpExchangeRepository
}

View file

@ -1,14 +0,0 @@
package org.gotson.komga.infrastructure.httptrace
import org.springframework.boot.actuate.trace.http.InMemoryHttpTraceRepository
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class HttpTraceConfiguration {
private val httpTraceRepository = InMemoryHttpTraceRepository()
@Bean
fun httpTraceRepository() = httpTraceRepository
}