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

Remove unused "id" field from parser and api_format #441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antonsoroko
Copy link
Contributor

@antonsoroko antonsoroko commented Oct 3, 2024

fixes #417

we can merge this or leave old code as is. up to your liking.

story:
id field looks unused. it was added 3 years ago, but then i do not see any usage neither in burst or elementum.
for duplicates hash is used -

if not any(existing == hash_ for existing in hashes):

in elementum there is no such field for TorrentFile - https://github.com/elgatito/elementum/blame/master/bittorrent/torrent_file.go#L35

maybe it was supposed to be used to find duplicates, but then this idea was abandoned.

after removing all lines added in the commit above - nothing changed in terms of search.

@antonsoroko antonsoroko marked this pull request as ready for review October 4, 2024 11:41
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.

What is the purpose of "id" field in parser/api_format ?
1 participant