Skip to content

Commit

Permalink
disk is memory is disk
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 committed Oct 16, 2024
1 parent 2018be8 commit cb1b96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflex/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -2566,9 +2566,9 @@ def create(cls, state: Type[BaseState]):
The state manager (either disk, memory or redis).
"""
config = get_config()
if config.state_manager_mode == constants.StateManagerMode.DISK:
return StateManagerMemory(state=state)
if config.state_manager_mode == constants.StateManagerMode.MEMORY:
return StateManagerMemory(state=state)
if config.state_manager_mode == constants.StateManagerMode.DISK:
return StateManagerDisk(state=state)
if config.state_manager_mode == constants.StateManagerMode.REDIS:
redis = prerequisites.get_redis()
Expand Down

0 comments on commit cb1b96d

Please sign in to comment.