mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-22 20:00:29 +03:00
Rewrote inara queue system
This replaces the list+queue system that the inara plugin originally used with a deque based one. The main differences here are that the list the worker thread uses to send to inara and the list that events are added to is the same, with the worker thread making a duplicate and clearing the original each time it sends events (losing events if it fails to upload three times). The format of the data has changed as well, from simple tuples to NamedTuple classes that provide some extra type safety and sanity when accessing fields. The event queue itself is actually multiple queues, one per API/FID/CMDR_name triplicate, thus allowing multiple commander switches while we're running without causing any weird issues
This commit is contained in:
parent
4d7b60507c
commit
dd85fc0504
695
plugins/inara.py
695
plugins/inara.py
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user