File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 14
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
# See the License for the specific language governing permissions and
16
16
# limitations under the License.
17
+ import asyncio
17
18
import copy
18
19
import importlib
19
20
import logging
28
29
from opentracing import Tracer
29
30
from opentracing .scope_managers .asyncio import AsyncioScopeManager
30
31
from twisted .internet import asyncioreactor , defer
31
- from twisted .internet .defer import Deferred , ensureDeferred
32
+ from twisted .internet .defer import Deferred
32
33
from twisted .internet .interfaces import (
33
34
IReactorCore ,
34
35
IReactorFDSet ,
@@ -225,7 +226,9 @@ def run(self) -> None:
225
226
@defer .inlineCallbacks
226
227
def start () -> Generator [Deferred [Any ], Any , Any ]:
227
228
try :
228
- yield ensureDeferred (self .make_pushkins_then_start ())
229
+ yield Deferred .fromFuture (
230
+ asyncio .ensure_future (self .make_pushkins_then_start ())
231
+ )
229
232
except Exception :
230
233
# Print the exception and bail out.
231
234
print ("Error during startup:" , file = sys .stderr )
You can’t perform that action at this time.
0 commit comments