set Runtime thread pool name prefix (#232)

This commit is contained in:
Sean McArthur
2018-03-15 16:37:32 -07:00
committed by Carl Lerche
parent d1046db735
commit b7f4e337be
+1
View File
@@ -234,6 +234,7 @@ impl Runtime {
let handle = reactor.handle().clone();
let pool = threadpool::Builder::new()
.name_prefix("tokio-runtime-worker-")
.around_worker(move |w, enter| {
::tokio_reactor::with_default(&handle, enter, |_| {
w.run();