def index()

in src/main/scala/Main.scala [41:49]


  def index() =
    log.debug("Serving index.")
    val text = requests.get(s"${AuctionServerUrl}/auctions").text()
    if rng.nextBoolean()
    then time("readJson2")(ujson.read(text))
    else time("readJson1") {
      Thread.sleep(2000L)
      ujson.read(text)
    }