mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[traffic] Re-enable message deduplication between feed queue and cache
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -551,7 +551,6 @@ void TrafficManager::DecodeFirstMessage()
|
|||||||
* The next feed (being a static file) returns the same data, so this check causes the message to
|
* The next feed (being a static file) returns the same data, so this check causes the message to
|
||||||
* get ignored as it has not changed.
|
* get ignored as it has not changed.
|
||||||
*/
|
*/
|
||||||
#if 0
|
|
||||||
// check if message is actually newer
|
// check if message is actually newer
|
||||||
auto it = m_messageCache.find(message.m_id);
|
auto it = m_messageCache.find(message.m_id);
|
||||||
bool process = (it == m_messageCache.end());
|
bool process = (it == m_messageCache.end());
|
||||||
@@ -562,7 +561,6 @@ void TrafficManager::DecodeFirstMessage()
|
|||||||
LOG(LINFO, ("message", message.m_id, "is already in cache, skipping"));
|
LOG(LINFO, ("message", message.m_id, "is already in cache, skipping"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
LOG(LINFO, (" ", message.m_id, ":", message));
|
LOG(LINFO, (" ", message.m_id, ":", message));
|
||||||
DecodeMessage(message);
|
DecodeMessage(message);
|
||||||
|
|||||||
Reference in New Issue
Block a user