Move Measure block inside loop

pull/1020/merge
Erik Johnston 2016-08-17 14:52:26 +01:00
parent 973d67a033
commit b9e888858c
1 changed files with 9 additions and 9 deletions

View File

@ -113,7 +113,6 @@ class _ServiceQueuer(object):
if service.id in self.requests_in_flight:
return
with Measure(self.clock, "_ServiceQueuer._send_request"):
self.requests_in_flight.add(service.id)
try:
while True:
@ -121,6 +120,7 @@ class _ServiceQueuer(object):
if not events:
return
with Measure(self.clock, "_ServiceQueuer._send_request"):
try:
yield self.txn_ctrl.send(service, events)
except: