This repository was archived by the owner on Jan 7, 2022. It is now read-only.
Making sure that a DAT is closed in the correct order#226
Merged
joehand merged 1 commit intodat-ecosystem-archive:masterfrom Dec 14, 2018
Merged
Making sure that a DAT is closed in the correct order#226joehand merged 1 commit intodat-ecosystem-archive:masterfrom
joehand merged 1 commit intodat-ecosystem-archive:masterfrom
Conversation
…t occur in the wrong order).
08ca7aa to
1120199
Compare
Collaborator
|
I merge this because node v8 was passing and node v10 was okay but getting memory error in test (which happens sometimes). But now I am getting an error in the tests locally as well, same as error on Travis here: https://travis-ci.org/datproject/dat-node/jobs/468113136#L489. |
Collaborator
|
Oh is this dependent on holepunchto/hyperdrive#231 ? |
4 tasks
Contributor
Author
|
In a way... It is related but not depended. The reason why it works in Travis might be the package-lock.json contains an old hypercore version that doesn't throw that error. Note: I think the package-lock should not be part of any library's repo. |
Collaborator
Makes sense, removed it. Definitely not the first time we've had weird errors because of it. |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hypercore introduced errors that might occur if something is read while closing. When DAT closes it has become more important to close the network and file-import
before the archive is closed.
This PR makes sure that the DAT is destructed in the proper order.