Kademlia does not need a separate thread

Kademlia creates its own threads, and does not need a thread to get it
started.
This commit is contained in:
John Jones 2017-03-21 12:23:54 -05:00
parent 83242b0046
commit 618264c709

View file

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