If you call MetafeedFinder fetch before it has loaded state (all the metafeed/announce msgs from the database), then it will ask remote peers for data that is already in our local database
Solution
Queue all fetch calls until the database has loaded all the 'metafeed/announce' messages.
Context
Stumbled upon this issue in https://github.com/ssbc/ssb-replication-scheduler/pull/11
Problem
If you call MetafeedFinder
fetch
before it has loaded state (all themetafeed/announce
msgs from the database), then it will ask remote peers for data that is already in our local databaseSolution
Queue all
fetch
calls until the database has loaded all the'metafeed/announce'
messages.