Explorar el Código

migrate deprecated redis.close to redis.aclose (#3199)

benedikt-bartscher hace 1 año
padre
commit
73e9123733
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      reflex/state.py

+ 1 - 1
reflex/state.py

@@ -2651,7 +2651,7 @@ class StateManagerRedis(StateManager):
 
         Note: Connections will be automatically reopened when needed.
         """
-        await self.redis.close(close_connection_pool=True)
+        await self.redis.aclose(close_connection_pool=True)
 
 
 def get_state_manager() -> StateManager: