-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: invert the dependency between Torrent named constructors
The constructor to hidrate the object from the database should depeden on the other to create a new Torrent from scracth. In fact, the `torrent_id` and `info_hash` in the `DbTorrentInfo` are not needed.
- Loading branch information
1 parent
4b6f25c
commit 0f163cf
Showing
2 changed files
with
30 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters