Skip to content

Commit

Permalink
fix: no profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
zenghur committed Jun 17, 2021
1 parent 0d7aac4 commit eee740e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ func (a *Agent) onSchedule(ctx context.Context) {
defer close(a.done)

r := a.initRing()
if r == nil {
return
}

pt := r.Value.(profile.Type)

ctx, cancel := context.WithCancel(ctx)
Expand Down

0 comments on commit eee740e

Please sign in to comment.