Modified the existing Effect directive in sample code of docs (#28157)
This commit is contained in:
parent
d4ed47f309
commit
09dad532a1
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue