Browse Source

Revert "server: Hardcode previous supplies (#47)"

This reverts commit 249589b8709170eba41dc2199fdfef470f87cb11.
prometheus-integration
Alexis Hernandez 7 years ago
parent
commit
6379c4e0bf
  1. 3
      server/app/com/xsn/explorer/services/StatisticsService.scala
  2. 2
      server/test/controllers/StatisticsControllerSpec.scala

3
server/app/com/xsn/explorer/services/StatisticsService.scala

@ -25,8 +25,7 @@ class StatisticsService @Inject() (
case Good(count) => Good(Some(count)) case Good(count) => Good(Some(count))
case Bad(_) => Good(None) case Bad(_) => Good(None)
}.toFutureOr }.toFutureOr
fakedStats = stats.copy(circulatingSupply = Some(70760408.694128), totalSupply = Some(80467288.2090169)) } yield StatisticsDetails(stats, count)
} yield StatisticsDetails(fakedStats, count)
result.toFuture result.toFuture
} }

2
server/test/controllers/StatisticsControllerSpec.scala

@ -37,8 +37,6 @@ class StatisticsControllerSpec extends MyAPISpec {
"GET /stats" should { "GET /stats" should {
"return the server statistics" in { "return the server statistics" in {
pending
val response = GET("/stats") val response = GET("/stats")
status(response) mustEqual OK status(response) mustEqual OK

Loading…
Cancel
Save