Skip to content

Commit

Permalink
Update container.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 2bc9b71 commit f46102b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actor/manager/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ func NewDefaultActorContainerContext(ctx context.Context, actorID string, impl a
daprClient, _ := dapr.NewClient()
// create state manager for this new actor
impl.SetStateManager(state.NewActorStateManagerContext(impl.Type(), actorID, state.NewDaprStateAsyncProvider(daprClient)))
err := impl.Activate()
err := impl.Activate()

Check failure on line 84 in actor/manager/container.go

View workflow job for this annotation

GitHub Actions / Test on 1.21

impl.Activate undefined (type actor.ServerContext has no field or method Activate)

Check failure on line 84 in actor/manager/container.go

View workflow job for this annotation

GitHub Actions / Test on 1.22

impl.Activate undefined (type actor.ServerContext has no field or method Activate)
if err != nil {
return nil, actorErr.ErrSaveStateFailed
}
// save state of this actor
err := impl.SaveState(ctx)
err = impl.SaveState(ctx)
if err != nil {
return nil, actorErr.ErrSaveStateFailed
}
Expand Down

0 comments on commit f46102b

Please sign in to comment.