Skip to content

Commit

Permalink
Kill off unnecessary sleep in route_guide example
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdada committed Nov 22, 2017
1 parent 0c000f6 commit 36f60a9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/python/route_guide/route_guide_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from __future__ import print_function

import random
import time

import grpc

Expand Down Expand Up @@ -66,7 +65,6 @@ def generate_route(feature_list):
random_feature = feature_list[random.randint(0, len(feature_list) - 1)]
print("Visiting point %s" % random_feature.location)
yield random_feature.location
time.sleep(random.uniform(0.5, 1.5))


def guide_record_route(stub):
Expand All @@ -91,7 +89,6 @@ def generate_messages():
for msg in messages:
print("Sending %s at %s" % (msg.message, msg.location))
yield msg
time.sleep(random.uniform(0.5, 1.0))


def guide_route_chat(stub):
Expand Down

0 comments on commit 36f60a9

Please sign in to comment.