Skip to content

Commit

Permalink
Deactivate dapp server to confirm source for crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lucksus committed Mar 22, 2024
1 parent dcbbdd6 commit 571af6b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions rust-executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ pub async fn run(mut config: Ad4mConfig) -> JoinHandle<()> {

info!("Starting GraphQL...");

if let Some(true) = config.run_dapp_server {
std::thread::spawn(|| {
let runtime = tokio::runtime::Builder::new_multi_thread()
.thread_name(String::from("dapp_server"))
.enable_all()
.build()
.unwrap();
let _ = runtime.block_on(serve_dapp(8080));
});
};
// if let Some(true) = config.run_dapp_server {
// std::thread::spawn(|| {
// let runtime = tokio::runtime::Builder::new_multi_thread()
// .thread_name(String::from("dapp_server"))
// .enable_all()
// .build()
// .unwrap();
// let _ = runtime.block_on(serve_dapp(8080));
// });
// };

std::thread::spawn(move || {
let runtime = tokio::runtime::Builder::new_multi_thread()
Expand Down

0 comments on commit 571af6b

Please sign in to comment.