Commit 5cc2c0f 1 parent 0994937 commit 5cc2c0f Copy full SHA for 5cc2c0f
File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ https.port = disabled
3
3
mongodb {
4
4
uri = "mongodb://127.0.0.1:27017?appName=lila"
5
5
mongo-async-driver = ${akka}
6
- junk {
6
+ yolo {
7
7
uri = ${mongodb.uri}
8
8
# uri = "mongodb://127.0.0.1:27010?appName=lila&connectTimeoutMS=800&rm.maxNonQueryableHeartbeats=9999"
9
9
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import lila.common.config._
9
9
import lila .hub .actorApi .round .CorresMoveEvent
10
10
11
11
final class Env (
12
- db : lila.db.AsyncDb @@ lila.db.JunkDb ,
12
+ db : lila.db.AsyncDb @@ lila.db.YoloDb ,
13
13
practiceApi : lila.practice.PracticeApi ,
14
14
gameRepo : lila.game.GameRepo ,
15
15
forumPostApi : lila.forum.PostApi ,
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import scala.concurrent.ExecutionContext
10
10
11
11
import lila .common .Lilakka
12
12
13
- trait JunkDb
13
+ // weakly replicated DB for low value documents
14
+ trait YoloDb
14
15
15
16
@ Module
16
17
final class Env (
@@ -26,11 +27,11 @@ final class Env(
26
27
driver = driver
27
28
)
28
29
29
- lazy val junkDb = new AsyncDb (
30
- name = " junk " ,
31
- uri = appConfig.get[String ](" mongodb.junk .uri" ),
30
+ lazy val yoloDb = new AsyncDb (
31
+ name = " yolo " ,
32
+ uri = appConfig.get[String ](" mongodb.yolo .uri" ),
32
33
driver = driver
33
- ).taggedWith[JunkDb ]
34
+ ).taggedWith[YoloDb ]
34
35
35
36
def asyncDb (name : String , uri : String ) =
36
37
new AsyncDb (
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ final class Env(
11
11
mongoCache : lila.memo.MongoCache .Api ,
12
12
userRepo : lila.user.UserRepo ,
13
13
cacheApi : lila.memo.CacheApi ,
14
- db : lila.db.AsyncDb @@ lila.db.JunkDb
14
+ db : lila.db.AsyncDb @@ lila.db.YoloDb
15
15
)(implicit
16
16
ec : scala.concurrent.ExecutionContext ,
17
17
system : ActorSystem
You can’t perform that action at this time.
0 commit comments