Skip to content

Remove cyclic namespace dependencies and Connection/Ledger protocols#888

Merged
zonotope merged 45 commits intomainfrom
refactor/encapsulate-connection
Oct 15, 2024
Merged

Remove cyclic namespace dependencies and Connection/Ledger protocols#888
zonotope merged 45 commits intomainfrom
refactor/encapsulate-connection

Conversation

@zonotope
Copy link
Contributor

@zonotope zonotope commented Sep 10, 2024

This patch removes cyclic dependencies in a lot of namespaces involving both the connection and ledger namespaces, which allowed us to also remove the connection protocols, and allows us to use connections as the "entry point" and api for the database so that different components are now agnostic about which components they sit alongside of to manage the system.

This patch is based on #882, so please review that, and all of the prs that #882 depends on, first.

The commit should be validated upstream of this method at read time
This ns is still referencing the conn attached to db. That needs to be cleared
up in a later commit.
and invert the dependency between ledger and connection namespace
@zonotope zonotope requested a review from a team September 10, 2024 16:15
@zonotope zonotope self-assigned this Sep 10, 2024
(-did [conn] "Returns optional default did map if set at connection level")
(-nameservices [conn] "Returns a sequence of all nameservices configured for the connection."))

(defprotocol iStorage
Copy link
Contributor

Choose a reason for hiding this comment

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

:D

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.

This looks great. I love to see the payoff of all the refactoring you've been doing, having everything be dispatched from the Connection is a big step forward.

@zonotope zonotope mentioned this pull request Oct 4, 2024
Base automatically changed from refactor/general-connection to main October 15, 2024 07:48
@zonotope zonotope merged commit f60bb63 into main Oct 15, 2024
@zonotope zonotope deleted the refactor/encapsulate-connection branch October 15, 2024 07:49
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