Skip to content

Commit 60429f7

Browse files
committed
Setup main_loop inside BuildExecutor.__init__
1 parent aea5b3d commit 60429f7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

binderhub/build.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,9 @@ class BuildExecutor(LoggingConfigurable):
103103
config=True,
104104
)
105105

106-
main_loop = Any(allow_none=False)
107-
108-
@default("main_loop")
109-
def _default_main_loop(self):
110-
return IOLoop.current()
106+
def __init__(self, **kwargs):
107+
super().__init__(**kwargs)
108+
self.main_loop = IOLoop.current()
111109

112110
stop_event = Any()
113111

0 commit comments

Comments
 (0)