Apply suggestions from code review

Co-authored-by: Vitaly Baranov <vitbar@yandex-team.ru>
This commit is contained in:
huzhichengdd 2022-01-12 17:00:54 +08:00 committed by GitHub
parent 5be2ecd27b
commit 929c1a10b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,7 @@ ContextAccess::ContextAccess(const AccessControl & access_control_, const Params
void ContextAccess::initialize()
{
std::lock_guard lock{mutex};
subscription_for_user_change = access_control->subscribeForChanges(
*params.user_id, [weak_ptr = weak_from_this()](const UUID &, const AccessEntityPtr & entity)
{