Commit 1d3b83ed authored by Mateusz Żebrak's avatar Mateusz Żebrak
Browse files

Improve Node.CachedData

Previous version was analogous to what we were
doing before but there is a palce for some improvements:
- since we have batched requests, we don't have to call
  API separately for config, dgpo or network type, because
  everything can be done in a batch (GetNodeBasicInfo cmd)
- when changing node address, sync is required on a next property access
  and when there are many calls to accessor, update can be triggered
  multiple times. Now lock prevents that and multiple asycnio tasks will wait
  for a single data update to end.
- dgpo/config update is done in a more controlled way, via update method
parent 5bb81bc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment