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

Encapsulate Index #218

Merged
merged 5 commits into from
Nov 3, 2022
Merged

Encapsulate Index #218

merged 5 commits into from
Nov 3, 2022

Conversation

zonotope
Copy link
Contributor

@zonotope zonotope commented Nov 3, 2022

This branch attempts to remove some of our reliance on mutable state to initialize and manage ledgers, indexers, and databases.

This watch was just a placeholder for future watching functionality, but it's
not currently used. The watching functionality itself also encourages
propogating mutable state and complects the indexing and ledger update
operation. I think we should instead use explicit function calls with persistent
values instead of mutable state to implement this functionality when we
eventually need it.
This allows us to run only the integration tests with:

```
clojure -M:cljtest --focus-meta :integration
```
@zonotope zonotope requested a review from a team November 3, 2022 14:29
Copy link
Contributor

@dpetran dpetran left a comment

Choose a reason for hiding this comment

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

Nice work with the tests!

@zonotope
Copy link
Contributor Author

zonotope commented Nov 3, 2022

Nice work with the tests!

Thanks! This is still a draft though. There's more to come.

@dpetran
Copy link
Contributor

dpetran commented Nov 3, 2022

Haha, whoops. I wondered that removing the listeners was the only change you made to the ledger...

@zonotope zonotope mentioned this pull request Nov 3, 2022
@zonotope zonotope merged commit 9812633 into main Nov 3, 2022
@zonotope zonotope deleted the feature/encapsulate-index branch November 3, 2022 21:44
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.

2 participants