Skip to content

Commit

Permalink
fix Cannot find an implicit ExecutionContext
Browse files Browse the repository at this point in the history
  • Loading branch information
fluency03 committed May 5, 2018
1 parent dabe28f commit 93c2b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class BlockPoolActor extends ActorSupport {
override def preStart(): Unit = log.info("{} started!", this.getClass.getSimpleName)
override def postStop(): Unit = log.info("{} stopped!", this.getClass.getSimpleName)

import context.dispatcher

val blockchainActor: ActorSelection = context.actorSelection(PARENT_UP + BLOCKCHAIN_ACTOR_NAME)
val networkActor: ActorSelection = context.actorSelection(PARENT_UP + NETWORK_ACTOR_NAME)
val txPoolActor: ActorSelection = context.actorSelection(PARENT_UP + TX_POOL_ACTOR_NAME)
Expand All @@ -44,12 +46,6 @@ class BlockPoolActor extends ActorSupport {
case _ => unhandled _
}

/**
* TODO (Chang): new APIS:
* - CreateBlock
*
*/

/**
* Handlers for each of the Messages.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ trait BlockPoolRoutes extends RoutesSupport {

def blockPoolActor: ActorRef

/**
* TODO (Chang): new APIS:
* - CreateBlock
*
*/

lazy val blockPoolRoutes: Route =
pathPrefix(BLOCK_POOL) {
path(BLOCKS) {
Expand Down

0 comments on commit 93c2b2a

Please sign in to comment.