Skip to content

Commit

Permalink
fix(GraphQL): This PR reduces polling duration of subscriptions. (#6661
Browse files Browse the repository at this point in the history
…) (#6735)

(cherry picked from commit b2d2697)
  • Loading branch information
JatinDev543 authored Oct 15, 2020
1 parent 3160173 commit 06b5450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/subscription/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (p *Poller) poll(req *pollRequest) {
currentHash := farm.Fingerprint64(res.Data.Bytes())

if req.prevHash == currentHash {
if pollID%30 != 0 {
if pollID%2 != 0 {
// Don't update if there is no change in response.
continue
}
Expand Down

0 comments on commit 06b5450

Please sign in to comment.