HomeSoftware Heritage

Setup async interface for discovery module

Description

Setup async interface for discovery module

This will allow us to use this interface in async code like `swh-scanner`.

Unfortunately, this means calling `asyncio.run` for sync code, but the
performance impact should be negligible.

The `swh_storage.*missing*` APIs are inconsistent for each type, which
requires a lot of boilerplate code. This should be addressed in a
follow-up.

Details

Provenance
AlphareAuthored on Sep 26 2022, 6:21 PM
AlpharePushed on Sep 28 2022, 5:54 PM
Differential Revision
D8538: Setup async interface for discovery module
Parents
rDLDBASE798f749e66c8: Use a Merkle discovery algorithm with archives
Branches
Unknown
Tags
Unknown
Build Status
Buildable 31887
Build 49903: test-and-buildJenkins console · Jenkins