Kademlia does not need a separate thread

Kademlia creates its own threads, and does not need a thread to get it
started.
yamux
John Jones 2017-03-21 12:23:54 -05:00
parent 83242b0046
commit 618264c709
1 changed files with 3 additions and 0 deletions

View File

@ -47,9 +47,12 @@ int ipfs_daemon_start(char* repo_path) {
}
// create pthread for the API
ipfs_bootstrap_routing(&local_node);
/*
if (pthread_create(&work_pths[count_pths++], NULL, ipfs_bootstrap_routing, &local_node)) {
fprintf(stderr, "Error creating thread for routing\n");
}
*/
fprintf(stderr, "Daemon is ready\n");