Skip to content
Snippets Groups Projects
Commit 689c8a3c authored by Georges Racinet's avatar Georges Racinet
Browse files

Fixed/updated server process for new services and structure

parent 806ce304
No related branches found
No related tags found
No related merge requests found
Pipeline #7038 passed with warnings
......@@ -15,11 +15,14 @@
registrar,
)
from hgitaly.stub import (
commit_pb2_grpc,
)
from hgitaly.servicer import (
Servicer as CommitServicer,
from hgitaly.service.commit import CommitServicer
from hgitaly.service.ref import RefServicer
from hgitaly.service.repository_service import RepositoryServiceServicer
from hgitaly.stub.commit_pb2_grpc import add_CommitServiceServicer_to_server
from hgitaly.stub.ref_pb2_grpc import add_RefServiceServicer_to_server
from hgitaly.stub.repository_service_pb2_grpc import (
add_RepositoryServiceServicer_to_server
)
# mercurial.urllibcompat seems to be willing to make urlparse access uniform,
......@@ -83,8 +86,10 @@
b"the command with the --repositories-root option."
))
server = grpc.server(futures.ThreadPoolExecutor(max_workers=1))
commit_pb2_grpc.add_CommitServiceServicer_to_server(
CommitServicer(repos_root), server)
add_CommitServiceServicer_to_server(CommitServicer(repos_root), server)
add_RefServiceServicer_to_server(RefServicer(repos_root), server)
add_RepositoryServiceServicer_to_server(
RepositoryServiceServicer(repos_root), server)
for url in listen_urls:
try:
......
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