Skip to content

Commit

Permalink
Update actor.go
Browse files Browse the repository at this point in the history
fix actor Activate interface
  • Loading branch information
wXwcoder authored Feb 19, 2024
1 parent f46102b commit d2528d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions actor/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ type ServerContext interface {
// SaveState is impl by ServerImplBase, It saves the state cache of this actor instance to state store component by calling api of daprd.
// Save state is called at two places: 1. On invocation of this actor instance. 2. When new actor starts.
SaveState(context.Context) error
// Activate called when actor created by actor manager
Activate() error
// Deactivate called before actor removed by actor manager
Deactivate() error
}

type ReminderCallee interface {
Expand Down

0 comments on commit d2528d7

Please sign in to comment.