Skip to content

Commit

Permalink
docs: update godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Mar 20, 2024
1 parent e4c19c4 commit 86a893a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func main() {
os.Exit(0)
}

// AccountBehavior implements persistence.Behavior
// AccountBehavior implements EntityBehavior
type AccountBehavior struct {
id string
}
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func main() {
AccountId: entityID,
AccountBalance: 500.00,
}
// send the command to the actor. Please don't ignore the error in production grid code
// send the command to the entity. Please don't ignore the error in production grid code
account, _, _ := entity.SendCommand(ctx, command)

log.Printf("current balance: %v", account.GetAccountBalance())
Expand All @@ -129,12 +129,12 @@ func main() {
signal.Notify(interruptSignal, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
<-interruptSignal

// stop the actor system
// stop the ego engine
_ = e.Stop(ctx)
os.Exit(0)
}

// AccountBehavior implements persistence.Behavior
// AccountBehavior implements EntityBehavior
type AccountBehavior struct {
id string
}
Expand Down

0 comments on commit 86a893a

Please sign in to comment.