Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KenyonY committed Jan 12, 2024
1 parent b9a173f commit 5bfa837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flaxkv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,7 @@ def db_dict(self, decode_raw=True):
view,
) = self._get_status_info(
return_buffer_dict=True,
return_view=False if self._cache_all_db else True,
return_view=True,
decode_raw=decode_raw,
)

Expand Down
4 changes: 3 additions & 1 deletion flaxkv/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def connect(self, **kwargs):
db_name=self.db_name,
backend=kwargs.pop("backend", "leveldb"),
rebuild=self._rebuild,
timeout=kwargs.pop("timeout", 10), # refers to connect timeout
timeout=kwargs.pop(
"timeout", 10
), # `timeout` refers to connection timeout
**kwargs,
)
else:
Expand Down

0 comments on commit 5bfa837

Please sign in to comment.