Skip to content

Commit

Permalink
c++20 std::multimap now has a contains method which is preferred over…
Browse files Browse the repository at this point in the history
… count
  • Loading branch information
ryanolson committed Dec 5, 2022
1 parent f025907 commit 39dc6fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Expected<protos::RegisterWorkersResponse> ConnectionManager::register_instances(
}

// check if any workers/instances have been registered on the requesting stream
if (m_instances_by_stream.count(stream_id) != 0)
if (m_instances_by_stream.contains(stream_id))
{
return Error::create(MRC_CONCAT_STR("failed to register instances on immutable stream "
<< stream_id << "; streams are immutable after first registration"));
Expand Down

0 comments on commit 39dc6fe

Please sign in to comment.