fix warning

swiss
Thibault Duplessis 2020-05-04 23:41:08 -06:00
parent 649ff89969
commit 0257eefd28
1 changed files with 8 additions and 9 deletions

View File

@ -2,7 +2,6 @@ package lila.search
import play.api.libs.json._
import play.api.libs.ws._
import scala.annotation.nowarn
sealed trait ESClient {
@ -69,12 +68,12 @@ final class ESClientHttp(
}
final class ESClientStub extends ESClient {
def search[Q: Writes](query: Q, from: From, size: Size) = fuccess(SearchResponse(Nil))
def count[Q: Writes](query: Q) = fuccess(CountResponse(0))
def store(id: Id, doc: JsObject) = funit
@nowarn("cat=unused") def storeBulk(docs: Seq[(Id, JsObject)]) = funit
def deleteById(id: Id) = funit
def deleteByIds(ids: List[Id]) = funit
def putMapping = funit
def refresh = funit
def search[Q: Writes](query: Q, from: From, size: Size) = fuccess(SearchResponse(Nil))
def count[Q: Writes](query: Q) = fuccess(CountResponse(0))
def store(id: Id, doc: JsObject) = funit
def storeBulk(docs: Seq[(Id, JsObject)]) = funit
def deleteById(id: Id) = funit
def deleteByIds(ids: List[Id]) = funit
def putMapping = funit
def refresh = funit
}