refactor: remove injected db field from PGDocStatusStorage, it must be injected after object is created
This commit is contained in:
parent
7b79427097
commit
3372af7c3d
1 changed files with 1 additions and 3 deletions
|
|
@ -418,10 +418,8 @@ class PGVectorStorage(BaseVectorStorage):
|
|||
|
||||
@dataclass
|
||||
class PGDocStatusStorage(DocStatusStorage):
|
||||
"""PostgreSQL implementation of document status storage"""
|
||||
|
||||
# db instance must be injected before use
|
||||
db: PostgreSQLDB
|
||||
# db: PostgreSQLDB
|
||||
|
||||
async def filter_keys(self, data: set[str]) -> set[str]:
|
||||
"""Return keys that don't exist in storage"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue