Fabric: Fixing event priority propagation in ConcreteState

Summary:
Two changes:
 * Now we pass the given `priority` to the next function;
 * The default value for `updateState` is now the same as a default value in another overload of the same function (AsynchronousBatched).

All that don't change anything for now because sync event dispatching is disabled (that will matter bit later thought).

Changelog: [Internal] Fabric-specific internal change.

Reviewed By: JoshuaGross

Differential Revision: D18607655

fbshipit-source-id: 9dc7cdac9f347e09449a931c780e613925882a1e
This commit is contained in:
Valentin Shergin 2019-11-22 20:05:04 -08:00 коммит произвёл Facebook Github Bot
Родитель 5798cf2aa9
Коммит 858824c08b
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -52,11 +52,12 @@ class ConcreteState : public State {
*/
void updateState(
Data &&newData,
EventPriority priority = EventPriority::SynchronousUnbatched) const {
EventPriority priority = EventPriority::AsynchronousUnbatched) const {
updateState(
[data = std::move(newData)](const Data &oldData) mutable -> Data && {
return std::move(data);
});
},
priority);
}
/*