Skip to content

Commit

Permalink
fix high CPU usage
Browse files Browse the repository at this point in the history
  • Loading branch information
alcounit committed May 2, 2021
1 parent 85ed968 commit 418a684
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions selenosis.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ func New(logger *log.Logger, client platform.Platform, browsers *config.Browsers

ch := client.Watch()
go func() {
for {
for event := <-ch: {


}
select {
case event := <-ch:
switch event.PlatformObject.(type) {
Expand Down Expand Up @@ -147,11 +150,7 @@ func New(logger *log.Logger, client platform.Platform, browsers *config.Browsers
}
storage.Quota().Put(quota)
}
default:
break
}
default:
break
}
}
}()
Expand Down

0 comments on commit 418a684

Please sign in to comment.