Properly import protos

pull/18312/head
Richard Belleville 6 years ago
parent b9659d58da
commit f3b57e35ec
  1. 1
      examples/python/multiprocessing/BUILD
  2. 4
      examples/python/multiprocessing/client.py
  3. 4
      examples/python/multiprocessing/server.py

@ -20,6 +20,7 @@ load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_library")
py_proto_library(
name = "prime_proto",
protos = ["prime.proto",],
deps = [requirement("protobuf")],
)
py_binary(

@ -26,8 +26,8 @@ import sys
import grpc
import prime_pb2
import prime_pb2_grpc
from examples.python.multiprocessing import prime_pb2
from examples.python.multiprocessing import prime_pb2_grpc
_PROCESS_COUNT = 8
_MAXIMUM_CANDIDATE = 10000

@ -29,8 +29,8 @@ import sys
import grpc
import prime_pb2
import prime_pb2_grpc
from examples.python.multiprocessing import prime_pb2
from examples.python.multiprocessing import prime_pb2_grpc
_LOGGER = logging.getLogger(__name__)

Loading…
Cancel
Save