Merge "Add monkey_patch to demo code."

This commit is contained in:
Jenkins 2017-07-13 06:10:43 +00:00 committed by Gerrit Code Review
commit 78b698af28

@ -73,6 +73,13 @@ complete after the Server has been stopped.
A simple example of an RPC server with multiple endpoints might be::
# NOTE(changzhi): We are using eventlet executor and
# time.sleep(1), therefore, the server code needs to be
# monkey-patched.
import eventlet
eventlet.monkey_patch()
from oslo_config import cfg
import oslo_messaging
import time