Modified the existing Effect directive in sample code of docs (#28157)

This commit is contained in:
Jafer Khan 2019-11-13 19:34:00 +05:00 committed by Johan Andrén
parent d4ed47f309
commit 09dad532a1

View file

@ -200,9 +200,7 @@ object BasicPersistentBehaviorCompileOnly {
emptyState = State(),
commandHandler = CommandHandler.command { cmd =>
context.log.info("Got command {}", cmd)
Effect.persist(cmd).thenRun { state =>
context.log.info("event persisted, new state {}", state)
}
Effect.none
},
eventHandler = {
case (state, _) => state