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: Make Repo independent #92

Merged
merged 8 commits into from
Aug 24, 2023
Merged

Conversation

dariusc93
Copy link
Owner

@dariusc93 dariusc93 commented Aug 23, 2023

In the current implementation, Repo is initialized and used while initializing Ipfs, making it require for repo and dag operations, however there may be instances where such operations should be separate (eg only needing to load blocks locally without initializing Ipfs or needing it to be online, etc).

This PR separates Repo out to be independent of Ipfs but can still be used within an instance when calling UninitializedIpfs::set_repo. Repo can also be used with IpldDag without Ipfs, and unixfs functions, however online operations will not work unless Ipfs is initialized and used.

@dariusc93 dariusc93 marked this pull request as ready for review August 24, 2023 06:55
@dariusc93 dariusc93 merged commit 2843e5e into libp2p-next Aug 24, 2023
@dariusc93 dariusc93 deleted the refactor/repo-seperation branch August 24, 2023 06:55
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.

1 participant