Skip to content

Commit b1a2bc5

Browse files
authored
Merge pull request #5 from lighthouse-web3/feature/file-tags
[Clean up]✍️removed test api
2 parents 37160ab + de56501 commit b1a2bc5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/lighthouseweb3/functions/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Config:
66

77
# lighthouse_api = "http://13.234.35.183:5050" # "https://api.lighthouse.storage"
88
lighthouse_api = 'https://api.lighthouse.storage'
9-
lighthouse_api_test = "http://34.131.52.103"
109
lighthouse_node = "https://node.lighthouse.storage"
1110
lighthouse_bls_node = "https://encryption.lighthouse.storage"
1211
lighthouse_gateway = "https://gateway.lighthouse.storage/ipfs"

src/lighthouseweb3/functions/upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def upload(source: str | BufferedReader | NamedBufferedReader, token: str, tag:
4545
hashData = axios.post_blob(source, source.name, headers)
4646

4747
if len(tag):
48-
_axios = Axios(Config.lighthouse_api_test + "/api/user/create_tag")
48+
_axios = Axios(Config.lighthouse_api + "/api/user/create_tag")
4949
data = _axios.post({
5050
"tag": tag,
5151
"cid": hashData.get("Hash")
@@ -77,7 +77,7 @@ def uploadBlob(source: BufferedReader, filename: str, token: str, tag: str = ""
7777

7878
hashData = axios.post_blob(source, filename, headers)
7979
if len(tag):
80-
_axios = Axios(Config.lighthouse_api_test + "/api/user/create_tag")
80+
_axios = Axios(Config.lighthouse_api + "/api/user/create_tag")
8181
data = _axios.post({
8282
"tag": tag,
8383
"cid": hashData.get("Hash")

0 commit comments

Comments
 (0)