Skip to content

Commit

Permalink
Make processing of new_torrent_metadata_created notification synchr…
Browse files Browse the repository at this point in the history
…onous
  • Loading branch information
kozlovsky committed Feb 7, 2022
1 parent 107e026 commit 395a101
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def __init__(self, notifier: Notifier, db: TagDatabase, mds: MetadataStore,
self.mds = mds
self.batch_size = batch_size
self.interval = interval
self.notifier.add_observer(notifications.new_torrent_metadata_created, self.process_torrent_title)
self.notifier.add_observer(notifications.new_torrent_metadata_created, self.process_torrent_title,
synchronous=True)

@db_session
def start(self):
Expand Down

0 comments on commit 395a101

Please sign in to comment.