Skip to content

How to refactor Peer.rb to know when it is a Seed? #question #3

@rafapolo

Description

@rafapolo

Hello, I've been using RubyTorrent in a huge project to distribute a Archive of Public Papers, but I have to refactor it in such way we could count all Peers that are real Seeds - which have 100% of the files, and thats where we ask for conceptual help.
I think it can be inferred by the :state, or not?
https://github.com/willchapin/RubyTorrent/blob/master/lib/ruby_torrent/peer.rb#L8
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions