Skip to content

Commit

Permalink
Avoid MatchError in typed and untyped consumer publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
krasserm committed Aug 13, 2011
1 parent 3159a80 commit 90ef28f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ private[camel] class TypedConsumerPublishRequestor extends PublishRequestor {
def receiveActorRegistryEvent = {
case ActorRegistered(_, actor, typedActor) for (event ConsumerMethodRegistered.eventsFor(actor, typedActor)) deliverCurrentEvent(event)
case ActorUnregistered(_, actor, typedActor) for (event ConsumerMethodUnregistered.eventsFor(actor, typedActor)) deliverCurrentEvent(event)
case _ ()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ private[camel] class ConsumerPublishRequestor extends PublishRequestor {
def receiveActorRegistryEvent = {
case ActorRegistered(_, actor, None) for (event ConsumerActorRegistered.eventFor(actor)) deliverCurrentEvent(event)
case ActorUnregistered(_, actor, None) for (event ConsumerActorUnregistered.eventFor(actor)) deliverCurrentEvent(event)
case _ ()
}
}

Expand Down

0 comments on commit 90ef28f

Please sign in to comment.