Skip to content

Commit

Permalink
perf: performance tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Sep 23, 2024
1 parent d3ac5b6 commit 8e7d737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actors/pid.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func newPID(ctx context.Context, address *address.Address, actor Actor, opts ...
p.receive()
p.notifyWatchers()
if p.passivateAfter.Load() > 0 {
p.passivationLoop()
go p.passivationLoop()
}

if p.metricEnabled.Load() {
Expand Down Expand Up @@ -410,7 +410,7 @@ func (pid *PID) Restart(ctx context.Context) error {
pid.receive()
pid.notifyWatchers()
if pid.passivateAfter.Load() > 0 {
pid.passivationLoop()
go pid.passivationLoop()
}

pid.restartCount.Inc()
Expand Down

0 comments on commit 8e7d737

Please sign in to comment.