Skip to content
Snippets Groups Projects
Commit 6188be58 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

api: Use RPC* classes instead of deprecated SWHRemoteAPI

parent 3d06845d
No related branches found
No related tags found
No related merge requests found
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
......
......@@ -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
......
......@@ -10,7 +10,7 @@ import collections
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 @@ def batch_progress(request):
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment