add notification sending

This commit is contained in:
serxa 2024-09-17 11:18:19 +00:00
parent 5473b5a051
commit ec4e0ed1b2
2 changed files with 5 additions and 0 deletions

View File

@ -128,6 +128,7 @@ void WorkloadEntityDiskStorage::loadEntities()
void WorkloadEntityDiskStorage::reloadEntities()
{
// TODO(serxa): it does not send notifications, maybe better to remove this method completely
loadEntitiesImpl();
}

View File

@ -152,6 +152,8 @@ bool WorkloadEntityStorageBase::storeEntity(
onEntityAdded(entity_type, entity_name, create_entity_query);
}
sendNotifications();
return stored;
}
@ -183,6 +185,8 @@ bool WorkloadEntityStorageBase::removeEntity(
onEntityRemoved(entity_type, entity_name);
}
sendNotifications();
return removed;
}