Skip to content

Commit

Permalink
feat: Development
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Feb 18, 2024
1 parent 2ccb132 commit 51f98a3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trident-storage"
version = "0.0.5"
version = "0.0.6"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub struct HttpConfig {
impl Default for HttpConfig {
fn default() -> Self {
HttpConfig {
endpoint: "127.0.0.1:80".to_string(),
endpoint: "0.0.0.0:80".to_string(),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion trident-py/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "izihawa-trident-client"
version = "1.0.13"
version = "1.0.14"
description = ""
authors = ["Pasha Podolsky <[email protected]>"]
readme = "README.md"
Expand Down
4 changes: 3 additions & 1 deletion trident-py/trident/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ async def table_foreign_insert(self, from_table: str, from_key: str, to_table: s
})
return await response.read()

async def table_get(self, table: str, key: str, timeout: float = None) -> bytes:
async def table_get(self, table: str, key: str, timeout: float = None) -> bytes | None:
url = f"/tables/{table}/{key}/"
response = await self.get(url, timeout=timeout)
if response is None:
return None
return await response.read()

async def table_get_chunks(self, table: str, key: str, timeout: float = None) -> AsyncGenerator[bytes, None]:
Expand Down

0 comments on commit 51f98a3

Please sign in to comment.