Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
glevco committed Mar 4, 2024
1 parent b9fb592 commit 3c94c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hathor/cli/reset_feature_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def create_parser() -> ArgumentParser:


def execute(args: Namespace) -> None:
from hathor.conf.get_settings import get_settings
from hathor.conf.get_settings import get_global_settings
from hathor.feature_activation.storage.feature_activation_storage import FeatureActivationStorage
from hathor.storage import RocksDBStorage

assert args.data is not None, '--data is required'

rocksdb_storage = RocksDBStorage(path=args.data)
feature_storage = FeatureActivationStorage(settings=get_settings(), rocksdb_storage=rocksdb_storage)
feature_storage = FeatureActivationStorage(settings=get_global_settings(), rocksdb_storage=rocksdb_storage)

logger.info('removing feature activation settings...')
feature_storage.reset_settings()
Expand Down

0 comments on commit 3c94c98

Please sign in to comment.