Skip to content

Commit

Permalink
updates README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaparadela committed Dec 7, 2023
1 parent c07f16a commit d1e57b4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,21 @@ Run the consumer:
sbt "runMain com.xebia.conspoc.ConsPOC"
```

Run the UserActor app:

```bash
sbt "runMain com.xebia.useractorpoc.UserApp"
```

And see the logs:

```bash
[INFO] [com.xebia.useractorpoc.UserActor$] - Got command Add(1,Actor[akka://UserActorPoC/deadLetters#0])
[INFO] [com.xebia.useractorpoc.UserActor$] - Handling event Added(1)
```

Run the UserActor tests:

```bash
sbt "testOnly com.xebia.useractorpoc.UserActorSpec"
```
12 changes: 0 additions & 12 deletions src/main/scala/com/xebia/useractorpoc/UserApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,8 @@ import akka.pattern.StatusReply

object UserApp extends App {


val system: ActorSystem[UserActor.Command] = ActorSystem(UserActor("1"), "UserActorPoC")
val ref = system.deadLetters[StatusReply[UserActor.Summary]]

println("entro 33333")
system ! UserActor.Add("1", ref)

println("ahora?")
// println("entro 33333")
// system ! UserActor.Add("2")
// println("entro 33333")
// system ! UserActor.Add("3")
// println("entro 33333")
// system ! UserActor.Add("4")


}

0 comments on commit d1e57b4

Please sign in to comment.