Commit 009255f
authored
Avoid extra Guild removals in Ready handler (#3331)
This code was removing guilds from cache which the current shard is
responsible for, but wasn't received in the unavailable payload.
This code path could only be hit under extreme circumstances, such as
unsuccessful resumes, and since we cannot rely on cache consistency
after an unsuccessful resume anyway this does more bad than good.
To add to the motivation for doing this, out of the libraries checked
(twilight, discord.py, hikari) none do this either.1 parent bf2b2ff commit 009255f
1 file changed
+0
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | 475 | | |
482 | 476 | | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | 477 | | |
499 | 478 | | |
500 | 479 | | |
| |||
0 commit comments