bluelinklabs / ctzn

[DEPRECATED] An open social network built on the Hypercore Protocol data mesh.
https://ctzn.network
MIT License
286 stars 25 forks source link

Potential concern: teardown may return before unswarm #52

Open hamnox opened 3 years ago

hamnox commented 3 years ago

When tearing down with unswarm set to true, the lines that unswarms the hyperbee and blobs feeds are sometimes never reached. If I recall correctly, Paul verified that network replication would still happen if a hyperbee was unloaded.

If so, that case may need to be unset separately. If replication status can only be set with the feed up, may need to save the setting to apply on the next restart to preserve expected behavior.

https://github.com/pfrazee/ctzn/blob/8202b08f2da1ffe36bbb75557d28b1e602fc7d48/db/base.js#L160-L171