Skip to content
Snippets Groups Projects

refactor follows and update_nofications indexing

Merged Dan Notestein requested to merge 267-update-notification-cache into develop
All threads resolved!
3 files
+ 44
44
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 4
4
@@ -15,7 +15,7 @@ from hive.indexer.hive_db.massive_blocks_data_provider import MassiveBlocksDataP
from hive.indexer.accounts import Accounts
from hive.indexer.block import Block, Operation, OperationType, Transaction, VirtualOperationType
from hive.indexer.custom_op import CustomOp
from hive.indexer.new_follow import NewFollow
from hive.indexer.follow import Follow
from hive.indexer.hive_db.block import BlockHiveDb
from hive.indexer.notify import Notify
from hive.indexer.post_data_cache import PostDataCache
@@ -53,7 +53,7 @@ class Blocks:
('Posts', Posts.flush, Posts),
('PostDataCache', PostDataCache.flush, PostDataCache),
('Votes', Votes.flush, Votes),
('NewFollow', NewFollow.flush, NewFollow),
('Follow', Follow.flush, Follow),
('Reblog', Reblog.flush, Reblog),
('Notify', Notify.flush, Notify),
('Accounts', Accounts.flush, Accounts),
@@ -79,7 +79,7 @@ class Blocks:
PostDataCache.setup_own_db_access(shared_db_adapter, "PostDataCache")
Votes.setup_own_db_access(shared_db_adapter, "Votes")
NewFollow.setup_own_db_access(shared_db_adapter, "NewFollow")
Follow.setup_own_db_access(shared_db_adapter, "Follow")
Posts.setup_own_db_access(shared_db_adapter, "Posts")
Reblog.setup_own_db_access(shared_db_adapter, "Reblog")
Notify.setup_own_db_access(shared_db_adapter, "Notify")
@@ -92,7 +92,7 @@ class Blocks:
PostDataCache.close_own_db_access()
Votes.close_own_db_access()
NewFollow.close_own_db_access()
Follow.close_own_db_access()
Posts.close_own_db_access()
Reblog.close_own_db_access()
Notify.close_own_db_access()
Loading