diff --git a/cloud/blockstore/libs/storage/disk_registry/disk_registry_actor_get_agent_node_id.cpp b/cloud/blockstore/libs/storage/disk_registry/disk_registry_actor_get_agent_node_id.cpp index 3b89b92815c..6281ac1ffa8 100644 --- a/cloud/blockstore/libs/storage/disk_registry/disk_registry_actor_get_agent_node_id.cpp +++ b/cloud/blockstore/libs/storage/disk_registry/disk_registry_actor_get_agent_node_id.cpp @@ -36,7 +36,7 @@ void TDiskRegistryActor::HandleGetAgentNodeId( return; } - auto* info = AgentRegInfo.FindPtr(agent->GetAgentId()); + const auto* info = AgentRegInfo.FindPtr(agent->GetAgentId()); const bool connected = info && info->Connected; response->Record.SetNodeId(agent->GetNodeId());