minor cleanups

This commit is contained in:
Romain Dorgueil
2017-09-30 11:50:34 +02:00
parent 9b3777f88d
commit b26dbc83cb
2 changed files with 0 additions and 11 deletions

View File

@ -41,15 +41,12 @@ class RateLimited(Configurable):
@ContextProcessor
def bucket(self, context):
print(context)
bucket = RateLimitBucket(self.initial, self.amount, self.period)
bucket.start()
print(bucket)
yield bucket
bucket.stop()
bucket.join()
def call(self, bucket, *args, **kwargs):
print(bucket, args, kwargs)
bucket.wait()
return self.handler(*args, **kwargs)

View File

@ -1,8 +0,0 @@
def render_as_dot(graph):
"""
:param bonobo.Graph graph:
:return: str
"""
pass