Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gemini support lfs cache and download #661

Merged
merged 5 commits into from
Oct 28, 2024

Conversation

wujian0327
Copy link
Contributor

gemini::lfs::share_lfs
paras
bootstrap_node: bootstrap_node
file_hash: file_hash
hash_type: hash_type
file_size: file_size
origin: origin
for example

{
 "bootstrap_node":"https://gitmono.org/relay",
 "file_hash":"52c90a86cb034b7a1c4beb79304fa76bd0a6cbb7b168c3a935076c714bd1c6b6",
 "hash_type":"sha256",
 "file_size":199246498,
 "origin":"p2p://t14id7uQxwneJ2PnPtaA3GSUwxTx6HTaq1UkayQVWSPT/sha256/52c90a86cb034b7a1c4beb79304fa76bd0a6cbb7b168c3a935076c714bd1c6b6"
}

This method will send a Post request to the relay to share lfs

gemini::lfs::create_lfs_download_tunnel
create lfs download local ports

Paras
bootstrap_node: bootstrap_node
ztm_agent_port: ztm_agent_port
file_uri: file_uri
for example

{
"bootstrap_node":"https://gitmono.org/relay",
"ztm_agent_port":777,
"file_uri":"p2p://t14id7uQxwneJ2PnPtaA3GSUwxTx6HTaq1UkayQVWSPT/sha256/52c90a86cb034b7a1c4beb79304fa76bd0a6cbb7b168c3a935076c714bd1c6b6"
}
Return
local_port1, local_port2,...

Each port is for a remote peer

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mega ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 8:21am

@genedna genedna added this pull request to the merge queue Oct 28, 2024
Merged via the queue into web3infra-foundation:main with commit 56bf993 Oct 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants