perf: use constant time live channel lookup (#3762)

This commit is contained in:
Sidd 2022-05-22 10:21:02 -07:00 committed by GitHub
parent dc34c16dbe
commit 21934b6aaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@
- Bugfix: Fixed viewer list not closing after pressing escape key. (#3734) - Bugfix: Fixed viewer list not closing after pressing escape key. (#3734)
- Bugfix: Fixed links with no thumbnail having previous link's thumbnail. (#3720) - Bugfix: Fixed links with no thumbnail having previous link's thumbnail. (#3720)
- Dev: Use Game Name returned by Get Streams instead of querying it from the Get Games API. (#3662) - Dev: Use Game Name returned by Get Streams instead of querying it from the Get Games API. (#3662)
- Dev: Batch checking live status for all channels after startup. (#3757) - Dev: Batch checking live status for all channels after startup. (#3757, #3762)
## 2.3.5 ## 2.3.5

View file

@ -346,7 +346,7 @@ void TwitchIrcServer::bulkRefreshLiveStatus()
[this](std::vector<HelixStream> streams) { [this](std::vector<HelixStream> streams) {
for (const auto &stream : streams) for (const auto &stream : streams)
{ {
auto chan = this->getChannelOrEmptyByID(stream.userId); auto chan = this->getChannelOrEmpty(stream.userLogin);
if (chan->getType() != Channel::Type::Twitch) if (chan->getType() != Channel::Type::Twitch)
continue; continue;