buildcomponent: remove unnecessary closure
This commit is contained in:
parent
c2b52c6efc
commit
3aa9d33492
1 changed files with 1 additions and 4 deletions
|
@ -159,10 +159,7 @@ class BuildComponent(BaseComponent):
|
|||
|
||||
def build_complete_callback(result):
|
||||
""" This function is used to execute a coroutine as the callback. """
|
||||
@trollius.coroutine
|
||||
def closure():
|
||||
yield From(self._build_complete(result))
|
||||
trollius.ensure_future(closure())
|
||||
trollius.ensure_future(self._build_complete(result))
|
||||
|
||||
self.call("io.quay.builder.build", **build_arguments).add_done_callback(build_complete_callback)
|
||||
|
||||
|
|
Reference in a new issue