fixes
This commit is contained in:
1 parent
38e54f0ab2
commit
e6153c881a
4 files changed
+465
-68
No files matched your search
@@ -128,3 +128,10 @@ async def repo_stat() -> Dict[str, Any]:
|
||||
r = await client.post(f"{IPFS_API_URL}/api/v0/repo/stat")
|
||||
r.raise_for_status()
|
||||
return r.json()
|
||||
|
||||
|
||||
async def id_info() -> Dict[str, Any]:
|
||||
async with httpx.AsyncClient(timeout=10) as client:
|
||||
r = await client.post(f"{IPFS_API_URL}/api/v0/id")
|
||||
r.raise_for_status()
|
||||
return r.json()
|
||||
Reference in new issue
Block a user