This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix overcounting of pushers when they are replaced #13296
Fix overcounting of pushers when they are replaced #13296
Changes from all commits
c028e8e
ee4b002
8449e79
8e9ad3d
fa3fe78
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be clearer to use
pusher.app_id
orappid_pushkey
consistently? Are those the same?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out that
pusher_config.app_id
andpusher.app_id
are the same. I'll update things to usepusher
instead ofpusher_config
once the pusher has been created.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, I wonder why
pushers
isn't just aDict[str, Dict[Tuple[str, str], Pusher]
, but whatever that's getting into too much refactoring.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the decrementing than incrementing cancel or can the
app_id
s be different or...?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They ought to cancel most of the time - the
app_ids
must be the same, otherwiseappid_pushkey
would be different.However, I can't convince myself that they always cancel. I'm not sure that
type(previous_pusher).__name__
will always be the same astype(pusher).__name__
.