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:
parent
83242b0046
commit
618264c709
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue