Command context no longer needed

This commit is contained in:
Johan Andrén 2018-09-20 15:03:12 +02:00
parent df697175b6
commit 68c4e14dbd

View file

@ -46,9 +46,6 @@ private[persistence] final class EventsourcedSetup[C, E, S](
) { ) {
import akka.actor.typed.scaladsl.adapter._ import akka.actor.typed.scaladsl.adapter._
// FIXME: do we really need it anymore?
def commandContext: ActorContext[C] = context.asInstanceOf[ActorContext[C]]
val persistence: Persistence = Persistence(context.system.toUntyped) val persistence: Persistence = Persistence(context.system.toUntyped)
val journal: ActorRef = persistence.journalFor(settings.journalPluginId) val journal: ActorRef = persistence.journalFor(settings.journalPluginId)