Skip to content

Commit

Permalink
Fix common requrements
Browse files Browse the repository at this point in the history
  • Loading branch information
mirel-dev committed Nov 14, 2024
1 parent 615f7fe commit a3182c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/ipfs_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class IPFSUtil(object):

def __init__(self, ipfs_url, port):
self.ipfs_conn = ipfshttpclient.connect(f"/dns4/{ipfs_url}/tcp/{port}/http")
self.ipfs_conn = ipfshttpclient.connect(f"/dns/{ipfs_url}/tcp/{port}/http")

def read_bytesio_from_ipfs(self, ipfs_hash):
ipfs_data = self.ipfs_conn.cat(ipfs_hash)
Expand Down
2 changes: 1 addition & 1 deletion common/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ web3==5.10.0
requests==2.22.0
PyMySQL==0.10.1
boto3==1.15.9
ipfsapi==0.4.3
ipfsapi==0.4.4

0 comments on commit a3182c2

Please sign in to comment.