minor cleanups
This commit is contained in:
@ -41,15 +41,12 @@ class RateLimited(Configurable):
|
|||||||
|
|
||||||
@ContextProcessor
|
@ContextProcessor
|
||||||
def bucket(self, context):
|
def bucket(self, context):
|
||||||
print(context)
|
|
||||||
bucket = RateLimitBucket(self.initial, self.amount, self.period)
|
bucket = RateLimitBucket(self.initial, self.amount, self.period)
|
||||||
bucket.start()
|
bucket.start()
|
||||||
print(bucket)
|
|
||||||
yield bucket
|
yield bucket
|
||||||
bucket.stop()
|
bucket.stop()
|
||||||
bucket.join()
|
bucket.join()
|
||||||
|
|
||||||
def call(self, bucket, *args, **kwargs):
|
def call(self, bucket, *args, **kwargs):
|
||||||
print(bucket, args, kwargs)
|
|
||||||
bucket.wait()
|
bucket.wait()
|
||||||
return self.handler(*args, **kwargs)
|
return self.handler(*args, **kwargs)
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
def render_as_dot(graph):
|
|
||||||
"""
|
|
||||||
|
|
||||||
:param bonobo.Graph graph:
|
|
||||||
:return: str
|
|
||||||
"""
|
|
||||||
|
|
||||||
pass
|
|
||||||
Reference in New Issue
Block a user