Skip to content

Commit

Permalink
Add explicit type for implicits
Browse files Browse the repository at this point in the history
To avoid compiler warning
  • Loading branch information
davidfurey committed Mar 12, 2024
1 parent f7de02e commit ba68b55
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import scala.concurrent.duration._
*/

class ReindexActor(reindexer: AtomReindexer) extends Actor {
implicit val ec = context.dispatcher
implicit val ec: ExecutionContext = context.dispatcher

/* this is the initial, idle state. In this state we will accept new jobs */
def idleState(lastJob: Option[AtomReindexJob]): Receive = {
Expand Down Expand Up @@ -96,14 +96,14 @@ class ReindexController @Inject() (

def now() = new Date().getTime

implicit val ec = system.dispatcher
implicit val ec: ExecutionContext = system.dispatcher

val previewReindexActor = system.actorOf(Props(classOf[ReindexActor], previewReindexer))
val publishedReindexActor = system.actorOf(Props(classOf[ReindexActor], publishedReindexer))

implicit val timeout = Timeout(5.seconds)
implicit val timeout: Timeout = Timeout(5.seconds)

implicit val statusWrites = Json.writes[JobStatus]
implicit val statusWrites: Writes[JobStatus] = Json.writes[JobStatus]

object ApiKeyAction extends ActionBuilder[Request, AnyContent] {
lazy val apiKey = config.get[String]("reindexApiKey")
Expand Down

0 comments on commit ba68b55

Please sign in to comment.