remove broken config

pull/8864/head
Thibault Duplessis 2021-05-04 14:54:44 +02:00
parent 324cd78365
commit d4105bb2db
3 changed files with 2 additions and 5 deletions

View File

@ -174,7 +174,6 @@ relation {
}
bookmark {
collection.bookmark = bookmark
paginator.max_per_page = ${game.paginator.max_per_page}
actor.name = bookmark
}
geoip {

View File

@ -11,7 +11,6 @@ import lila.hub.actorApi.bookmark._
@Module
final private class BookmarkConfig(
@ConfigName("collection.bookmark") val bookmarkCollName: CollName,
@ConfigName("paginator.max_per_page") val paginatorMaxPerPage: MaxPerPage,
@ConfigName("actor.name") val actorName: String
)

View File

@ -10,15 +10,14 @@ import lila.user.User
final class PaginatorBuilder(
coll: Coll,
gameRepo: GameRepo,
maxPerPage: lila.common.config.MaxPerPage
gameRepo: GameRepo
)(implicit ec: scala.concurrent.ExecutionContext) {
def byUser(user: User, page: Int): Fu[Paginator[Game]] =
Paginator(
new UserAdapter(user),
currentPage = page,
maxPerPage = maxPerPage
maxPerPage = lila.common.config.MaxPerPage(12)
)
final class UserAdapter(user: User) extends AdapterLike[Game] {