ipfs-shipyard / go-ipfs-desktop

Other
12 stars 6 forks source link

don't wait for ipfs to be ready forever #12

Open mvdan opened 3 years ago

mvdan commented 3 years ago

If we start the ipfs daemon and it never prints the "ready" line, we hang.

Use a timeout, like five seconds.

There's a very easy way to repro; place an executable shell script called ipfs in the same place where go-ipfs-desktop is run from. The script can just be a sleep 1000.