TheDiscordian / ipfs-sync

A simple daemon which will watch files on your filesystem, mirror them to MFS, automatically update related pins, and update related IPNS keys.
BSD 3-Clause "New" or "Revised" License
94 stars 14 forks source link

Currently it's possible to run 2 filestore cleanup jobs at once #36

Closed TheDiscordian closed 2 years ago

TheDiscordian commented 3 years ago

We should prevent multiple filestore cleanup jobs from running at once. It slows down performance significantly when it happens, and you just have to wait it out. A simple lock of somesort would prevent that, likely a channel would be used, and on block, just skip the cleanup operation on that goroutine (but still wait for cleanup to finish).