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
…) (#6726)

Fixes GRAPHQL-709

(cherry picked from commit b2d2697)
  • Loading branch information
JatinDev543 authored Nov 3, 2020
1 parent 6a01159 commit 2f9fc14
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 2f9fc14

Please sign in to comment.