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

feat: phase out environment trait #5439

Merged
merged 2 commits into from
Nov 15, 2023
Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Nov 15, 2023

the environment kind was super cumbersome to work with, it's only used when the environment is openened.

It also only controls the WriteMap setting (see new docs) and not the mode, which is a separate setting, but only takes affect if the DB is opened in RW mode.

naming can be discussed, and we can do a few more cleanups following this PR

@mattsse mattsse force-pushed the matt/phase-out-env-kind-trait branch from d6d77f8 to e9ee6d0 Compare November 15, 2023 16:06
@mattsse mattsse added the C-debt Refactor of code section that is hard to understand or maintain label Nov 15, 2023
@mattsse mattsse force-pushed the matt/phase-out-env-kind-trait branch from e9ee6d0 to 4ad93c9 Compare November 15, 2023 16:08
Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

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

LGTM. Can this be done for TransactionKind as well?

@mattsse
Copy link
Collaborator Author

mattsse commented Nov 15, 2023

pretty sure we can do that as well, if there are typelevel checks we can just use runtime checks instead

Copy link
Member

@rkrasiuk rkrasiuk left a comment

Choose a reason for hiding this comment

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

cleaner, lgtm!

@mattsse mattsse added this pull request to the merge queue Nov 15, 2023
Merged via the queue into main with commit dc72cad Nov 15, 2023
25 checks passed
@mattsse mattsse deleted the matt/phase-out-env-kind-trait branch November 15, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants