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
Fixes GRAPHQL-709

(cherry picked from commit b2d2697)
  • Loading branch information
JatinDev543 committed Oct 14, 2020
1 parent c2d5e66 commit 976dfda
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 976dfda

Please sign in to comment.