Fix telemetry panic error in node-template (#1958)

This commit is contained in:
郭光华 authored and Bastian Köcher committed 2019-03-12 13:19:42 +01:00
1 parent ead437d0f4
commit 3149136367
5 files changed
+13 -11

No files matched your search

+5
View File
@@ -66,6 +66,11 @@ fn run_until_exit<T, C, E>(
let _ = runtime.block_on(e.into_exit());
exit_send.fire();
// we eagerly drop the service so that the internal exit future is fired,
// but we need to keep holding a reference to the global telemetry guard
let _telemetry = service.telemetry();
drop(service);
Ok(())
}