Skip to content

Conversation

@RangerMauve
Copy link
Contributor

  • Adds new BitTorrent protocol
  • Integrates bt-fetch and it's Torrent Manager code for dealing with mutable torrents (BEP 46)
  • Updated types to add bt everywhere for bittorrent options
  • Updated protocol tests with basic BitTorrent smoke test

Before I get way further it'd be nice if I could get a vibe check on what we have so far and answer any questions about it.

Copy link
Contributor

@jackyzha0 jackyzha0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally looks good! a few questions/nits

@fauno
Copy link
Collaborator

fauno commented Jun 7, 2023

Copy link
Contributor

@jackyzha0 jackyzha0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! small non-blocking question

Comment on lines +99 to +100
async unsync (id: string, _site: Static<typeof BitTorrentProtocolFields>, ctx?: Ctx): Promise<void> {
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there nothing for unsync?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, not yet. It's a TODO.

@RangerMauve
Copy link
Contributor Author

Also, a question. What should we do about existing sites that don't have the protocol set already? I was thinking in the sites.get() function we could check for missing properties and add them in. cc @jackyzha0 thoughts?

@jackyzha0
Copy link
Contributor

Might be good to start thinking about migration scripts? Ideally a one-time thing instead of something that runs on every GET call. Let's discuss this more on call but we should figure out a smooth way for people to upgrade DP instances without data-loss

@resession
Copy link

great stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

5 participants