aboutsummaryrefslogtreecommitdiff
path: root/src/block.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement getting missing blocks when RC increasesAlex Auvolat2020-04-171-23/+140
| | | | | | | Issue: RC increases also when the block ref entry is first put by the actual client. At that point the client is probably already sending us the block content, so we don't need to do a get... We should add a delay before the task is added or find something to do.
* Keep network status & ring in a tokio::sync::watchAlex Auvolat2020-04-111-12/+14
| | | | | | advantages - reads don't prevent preparing writes - can be followed from other parts of the system by cloning the receiver
* Local refcounting of blocksAlex Auvolat2020-04-111-29/+93
|
* Fix the Sync issue. Details:Alex Auvolat2020-04-101-5/+5
| | | | | | | 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.
* Why is it not Sync??Alex Auvolat2020-04-091-0/+49