fix warning
parent
649ff89969
commit
0257eefd28
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue