diff --git a/requirements-swh.txt b/requirements-swh.txt --- a/requirements-swh.txt +++ b/requirements-swh.txt @@ -1,4 +1,4 @@ -swh.core[db,http] >= 0.0.61 +swh.core[db,http] >= 0.0.65 swh.model >= 0.0.27 swh.objstorage >= 0.0.17 swh.scheduler >= 0.0.39 diff --git a/swh/vault/api/client.py b/swh/vault/api/client.py --- a/swh/vault/api/client.py +++ b/swh/vault/api/client.py @@ -4,10 +4,10 @@ # See top-level LICENSE file for more information from swh.model import hashutil -from swh.core.api import SWHRemoteAPI +from swh.core.api import RPCClient -class RemoteVaultClient(SWHRemoteAPI): +class RemoteVaultClient(RPCClient): """Client to the Software Heritage vault cache.""" # Web API endpoints diff --git a/swh/vault/api/server.py b/swh/vault/api/server.py --- a/swh/vault/api/server.py +++ b/swh/vault/api/server.py @@ -10,7 +10,7 @@ from swh.core import config from swh.core.api.asynchronous import ( - SWHRemoteAPI, + RPCServerApp, encode_data_server as encode_data, decode_request, ) @@ -177,7 +177,7 @@ # Web server def make_app(backend, **kwargs): - app = SWHRemoteAPI(**kwargs) + app = RPCServerApp(**kwargs) app.router.add_route('GET', '/', index) # Endpoints used by the web API