Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixes #7: Make RandomAccess always open #11

Merged
merged 2 commits into from
Aug 29, 2018

Conversation

khernyo
Copy link
Member

@khernyo khernyo commented Aug 27, 2018

This PR removes the open() method and the now redundant RandomAccess struct.

This does not follow exactly #7 as there is no new struct/trait for the unopened state. It turns out that adding that would complicate things for no benefit IMO.

Checklist

  • documentation is changed or added

Context

#7

Semver Changes

Minor

@khernyo

This comment has been minimized.

@khernyo
Copy link
Member Author

khernyo commented Aug 27, 2018

See the necessary changes to the dependent libs: datrs/random-access-disk#13, datrs/random-access-memory#4, datrs/hypercore#26

@khernyo khernyo force-pushed the random-access-always-open branch from 1ff52f5 to 267171b Compare August 27, 2018 14:36
@khernyo khernyo changed the title [WIP] Fixes #7: Make RandomAccess always open Fixes #7: Make RandomAccess always open Aug 27, 2018
Signed-off-by: Szabolcs Berecz <szabolcs.berecz@gmail.com>
Signed-off-by: Szabolcs Berecz <szabolcs.berecz@gmail.com>
@khernyo khernyo force-pushed the random-access-always-open branch from 267171b to c2ce3d9 Compare August 27, 2018 14:38
Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

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

Been reading through all the PRs, and I like the resulting code a lot!

Looks a lot cleaner now; landing the whole patch series would be fantastic! ✨

@khernyo
Copy link
Member Author

khernyo commented Aug 28, 2018

All right, it's good to go. Please merge this and release a new version so that I can reference it in the other two random-access projects. I will do the cleanup on the other PRs tomorrow.

@yoshuawuyts yoshuawuyts merged commit f1fc498 into datrs:master Aug 29, 2018
@yoshuawuyts
Copy link
Contributor

v0.6.0 🎉

@khernyo khernyo deleted the random-access-always-open branch September 8, 2018 19:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants