IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
not sure how much sense does this make, given that the byte writing fns
might be less inlined. would be nice to have some benchmarks.
this also adds a test to verify directory cid when using cidv1 even
though it's quite unclear to me if those are allowed in unixfs dirs.
use the BTreeMap<String, Leaf> directly to output the PBLink alike
bytes without going through the mapping into Vec. Does not support Cid
v1 though yet.
adds the progress reporting, which is a progress notification to the
response stream on every block write *in addition to* a notification
*after* the file has been read (order with the `Added` message doesn't
seem to have been specified).
this is the go-ipfs 0.5 level support for add and directories. next up
will be parsing the headers as unixfsv1.5 metadata and using those with
the directories *and* files.
292: Use tokio::test in http instead of its async_std counterpart r=koivunej a=ljedrz
As `tokio` is the async executor in `http`.
Co-authored-by: ljedrz <ljedrz@gmail.com>
280: Patch a Bitswap leak r=koivunej a=ljedrz
We currently don't properly clean up after a connection to a `Bitswap` peer is closed, which leads to leaking `Ledger`s; funnily enough, it seems that just uncommenting a pre-existing line solves the issue. In addition, add a relevant test.
Co-authored-by: ljedrz <ljedrz@gmail.com>
291: fix: add timeouts to connect_two tests r=ljedrz a=koivunej
gha windows was stuck on this. it's not nice since we cannot see any
testing output before the run is cancelled.
Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
281: Some Kademlia debugging r=koivunej a=ljedrz
These changes were sparked by the following 2 observations:
- the logs sometimes indicate that a Kademlia query was executed twice
- `finish_subscription` didn't always result in futures being awoken
While the former remains a mystery (its occurrence is not correlated with subscriptions, meaning it's either some polling issue that eludes me or a bug in `libp2p`), investigating the `kad`<>`Subscription` route yielded a few improvements, namely:
- tweaked `kad` log levels
- proper `SubscriptionFuture` handling in `put_block`
- improved `SubscriptionRegistry` logs and a small fix
- simpler `SubscriptionFuture` type handling (it always returned a `Result`, so now it's a default)
- a `debug_assert` checking that we don't trigger zero-wake cases in `finish_subscription` during tests
- improved `swarm_api` test (that sometimes caused issues with the new `debug_assert`, but could be improved regardless)
Co-authored-by: ljedrz <ljedrz@gmail.com>
290: Some maintenance r=koivunej a=ljedrz
Some maintenance work so as not to conflict too much with the pending PRs:
- depend on cid instead of libipld where only Cid is used
- update the `domain` dep (big `Cargo.lock` wins)
cc #75
Co-authored-by: ljedrz <ljedrz@gmail.com>
288: fix: update async-stream to 0.3 r=ljedrz a=koivunej
this uses the rust 1.45 features to remove recursion inside the macro. great for #284 which adds even more complicated async-stream(s).
good to go if CI passes.
Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
289: Ignore a flaky Kademlia test r=koivunej a=ljedrz
`#[ignore]` that Kademlia test that likes to randomly fail due to being dependent on actual network.
Co-authored-by: ljedrz <ljedrz@gmail.com>