mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Storage: generate messages rather than intermediate updates.
This commit is contained in:
@@ -116,8 +116,6 @@ void Dispatcher::Flush() {
|
||||
}
|
||||
|
||||
void Dispatcher::DispatchThreadMain() {
|
||||
Storage& storage = Storage::GetInstance();
|
||||
|
||||
// local copy of active m_connections
|
||||
struct ConnectionRef {
|
||||
NetworkConnection* net;
|
||||
@@ -160,20 +158,6 @@ void Dispatcher::DispatchThreadMain() {
|
||||
}
|
||||
}
|
||||
|
||||
// grab local storage updates
|
||||
Storage::UpdateMap updates;
|
||||
bool delete_all;
|
||||
storage.GetUpdates(&updates, &delete_all);
|
||||
|
||||
// local entry updates
|
||||
for (auto& update_entry : updates) {
|
||||
auto update = update_entry.getValue();
|
||||
switch (update.kind) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// scan outgoing messages to remove unnecessary updates
|
||||
|
||||
// send outgoing messages
|
||||
|
||||
Reference in New Issue
Block a user