mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-09 15:19:56 +03:00
Scale subscription update processing
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -123,6 +123,16 @@ class Storage:
|
||||
"""Persist one subscription group through the shared repository."""
|
||||
Storage._UserSubsStorage().upsertGroup(group)
|
||||
|
||||
@staticmethod
|
||||
def upsertSubscriptionGroups(groups):
|
||||
"""Mutate a validated subscription-group batch in one commit."""
|
||||
Storage._UserSubsStorage().upsertGroups(groups)
|
||||
|
||||
@staticmethod
|
||||
def persistSubscriptionGroups():
|
||||
"""Serialize the current subscription repository once."""
|
||||
Storage._UserSubsStorage().sync()
|
||||
|
||||
@staticmethod
|
||||
def removeSubscriptionGroup(unique: str) -> SubscriptionGroup | None:
|
||||
"""Remove one subscription group through the shared repository."""
|
||||
|
||||
Reference in New Issue
Block a user