Revert "don't block daemon startup on the file manager"

This reverts commit f25b772
This commit is contained in:
Jack Robison 2018-03-12 10:44:29 -04:00
parent b41bb9beee
commit e881b608bf
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 2 additions and 3 deletions

View file

@ -24,7 +24,6 @@ at anytime.
### Changed ### Changed
* reflector server to periodically check and set `should_announce` for sd and head blobs instead of during each request * reflector server to periodically check and set `should_announce` for sd and head blobs instead of during each request
* reflector server to use `SQLiteStorage` to find needed blob hashes for a stream * reflector server to use `SQLiteStorage` to find needed blob hashes for a stream
* file manager startup to not block daemon startup
### Added ### Added
* scripts to autogenerate documentation * scripts to autogenerate documentation

View file

@ -44,8 +44,8 @@ class EncryptedFileManager(object):
@defer.inlineCallbacks @defer.inlineCallbacks
def setup(self): def setup(self):
yield self._add_to_sd_identifier() yield self._add_to_sd_identifier()
d = self._start_lbry_files() yield self._start_lbry_files()
d.addCallback(lambda _: log.info("Started file manager")) log.info("Started file manager")
def get_lbry_file_status(self, lbry_file): def get_lbry_file_status(self, lbry_file):
return self.session.storage.get_lbry_file_status(lbry_file.rowid) return self.session.storage.get_lbry_file_status(lbry_file.rowid)