Many imorovments
This commit is contained in:
@@ -87,10 +87,9 @@ pub fn spawn_sync(
|
||||
let (tx, rx) = std::sync::mpsc::channel();
|
||||
|
||||
std::thread::spawn(move || {
|
||||
let rt = match tokio::runtime::Builder::new_current_thread()
|
||||
.enable_all()
|
||||
.build()
|
||||
{
|
||||
// A current-thread runtime here is what made the library scan itself
|
||||
// rather than adopt the shards the server already had; see net_runtime.
|
||||
let rt = match crate::net_runtime::build() {
|
||||
Ok(rt) => rt,
|
||||
Err(e) => {
|
||||
let _ = tx.send(SyncMessage::Failed(e.to_string()));
|
||||
|
||||
Reference in New Issue
Block a user