Commit graph

4 commits

Author SHA1 Message Date
Alex 9c931f5eda Keep network status & ring in a tokio::sync::watch
advantages
- reads don't prevent preparing writes
- can be followed from other parts of the system by cloning the receiver
2020-04-11 23:53:32 +02:00
Alex 5dd59e437d Local refcounting of blocks 2020-04-11 23:00:26 +02:00
Alex 3477864142 Fix the Sync issue. Details:
So the HTTP client future of Hyper is not Sync, thus the stream
that read blocks wasn't either. However Hyper's default Body type
requires a stream to be Sync for wrap_stream. Solution: reimplement
a custom HTTP body type.
2020-04-10 22:01:48 +02:00
Alex d66c0d6833 Why is it not Sync?? 2020-04-09 23:45:07 +02:00