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
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ void TwitchIrcServer::bulkRefreshLiveStatus()
[this](std::vector<HelixStream> streams) {
for (const auto &stream : streams)
{
auto chan = this->getChannelOrEmptyByID(stream.userId);
auto chan = this->getChannelOrEmpty(stream.userLogin);
if (chan->getType() != Channel::Type::Twitch)
continue;