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

refactor lbrynet-daemon into modular components #1164

Merged
merged 37 commits into from
Jul 5, 2018
Merged

Conversation

jackrobison
Copy link
Member

No description provided.

@tzarebczan
Copy link
Contributor

@hackrush01 will you be using this PR or can we close it?

@hackrush01
Copy link
Contributor

@tzarebczan I'll be using this.

@lbryio lbryio deleted a comment Apr 22, 2018
Copy link
Member Author

@jackrobison jackrobison left a comment

Choose a reason for hiding this comment

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

@hackrush01

The wallet component looks good.

Next, you should add a dht_node component to used by Session (if a Node object is provided as an argument Session should use it instead of making one and starting it). Once you've got the dht_node component, Session can be made into a component too, followed by the file manager.

d.addCallback(create_session)
return defer.succeed(True)

d = create_session(self.wallet)
Copy link
Member Author

Choose a reason for hiding this comment

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

create_session doesn't need to be a function, you can just return self.session.setup() instead of having a callback.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

migrated = yield self._check_db_migration()
yield self.storage.setup()
yield self.component_manager.setup()
self.storage = self.component_manager.get_component("database").storage
Copy link
Member Author

Choose a reason for hiding this comment

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

@hackrush01 you can remove this since you've removed the references to Daemon.storage (to use Daemon.session.storage)

Copy link
Contributor

Choose a reason for hiding this comment

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

self.storage is still needed here

Copy link
Contributor

Choose a reason for hiding this comment

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

Removed in the latest commit

@hackrush01
Copy link
Contributor

hackrush01 commented May 17, 2018

6327c0d also fixes a regression which caused blobfiles folder to be created in the github repo as opposed to the .lbrynet folder

pylint error will be fixed in the next commit

@eukreign eukreign merged commit 75a6ff2 into master Jul 5, 2018
@eukreign eukreign deleted the daemon-components branch July 5, 2018 19:22
@eukreign eukreign restored the daemon-components branch July 5, 2018 23:02
eukreign added a commit that referenced this pull request Jul 5, 2018
eukreign added a commit that referenced this pull request Jul 5, 2018
* Revert "fix reflector test"

This reverts commit 6a15b51.

* Revert "refactor lbrynet-daemon into modular components (#1164)"

This reverts commit 75a6ff2.
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.

None yet

4 participants