Commit 4f990f1
committed
fix: add async setup() method to AsyncRedisSaver (#74)
Add async setup() method to AsyncRedisSaver that delegates to asetup()
to match the canonical pattern used by PostgreSQL and SQLite checkpointers.
This fixes the RuntimeWarning caused by calling the inherited sync setup()
method from BaseRedisSaver, which called async create() methods without
awaiting them.
Maintains backward compatibility by keeping the existing asetup() method
while providing the standard async setup() interface that users expect
from LangGraph checkpointers.
Fixes #741 parent cacffce commit 4f990f1
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
155 | 170 | | |
156 | 171 | | |
157 | 172 | | |
| |||
0 commit comments