Skip to content

Commit

Permalink
Fix: large IPFS files were not pinned (#456)
Browse files Browse the repository at this point in the history
Problem: the condition to pin the files is inverted.
  • Loading branch information
odesenfans committed Jul 19, 2023
1 parent 5c2c27d commit 116b524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aleph/handlers/content/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def fetch_related_content(
do_standard_lookup = False

# Pin folders and files larger than 1MB
if do_standard_lookup:
if not do_standard_lookup:
await ipfs_service.pin_add(cid=item_hash)

except asyncio.TimeoutError as error:
Expand Down

0 comments on commit 116b524

Please sign in to comment.