Use False instead 0 for bint

pull/21232/head
Lidi Zheng 5 years ago
parent d4b8527fb6
commit 1a3916bc45
  1. 4
      src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi

@ -28,10 +28,10 @@ def init_grpc_aio():
# Timers are triggered by the Asyncio loop. We disable # Timers are triggered by the Asyncio loop. We disable
# the background thread that is being used by the native # the background thread that is being used by the native
# gRPC iomgr. # gRPC iomgr.
grpc_timer_manager_set_threading(0) grpc_timer_manager_set_threading(False)
# gRPC callbaks are executed within the same thread used by the Asyncio # gRPC callbaks are executed within the same thread used by the Asyncio
# event loop, as it is being done by the other Asyncio callbacks. # event loop, as it is being done by the other Asyncio callbacks.
Executor.SetThreadingAll(0) Executor.SetThreadingAll(False)
_grpc_aio_initialized = 1 _grpc_aio_initialized = 1

Loading…
Cancel
Save