Skip to content

Commit

Permalink
make defaults for cron project lazy (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
eryshev authored Jan 23, 2019
1 parent 795d970 commit 234e2ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cron/src/main/scala/com/criteo/cuttle/cron/CronProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ object CronProject {
)
}

private[CronProject] val port = 8888
private[CronProject] val databaseConfig = DatabaseConfig.fromEnv
private[CronProject] val retryStrategy = RetryStrategy.SimpleRetryStategy(1.minute)
private[CronProject] lazy val port = 8888
private[CronProject] lazy val databaseConfig = DatabaseConfig.fromEnv
private[CronProject] lazy val retryStrategy = RetryStrategy.SimpleRetryStategy(1.minute)

implicit def projectEncoder = new Encoder[CronProject] {
override def apply(project: CronProject) =
Expand Down

0 comments on commit 234e2ac

Please sign in to comment.