Add sleep to prevent spinning thread
This commit is contained in:
@@ -58,6 +58,7 @@ impl JsonRpcService {
|
||||
server.unwrap().close();
|
||||
break;
|
||||
}
|
||||
sleep(Duration::from_millis(100));
|
||||
}
|
||||
()
|
||||
})
|
||||
|
Reference in New Issue
Block a user