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

Add and update consensus configuration options #17

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bplatz
Copy link
Contributor

@bplatz bplatz commented Nov 3, 2023

This primarily adds additional consensus configuration options and provides documentation for them.

The default logging directory now has some additional logic to str/replace the '/' in the multi-address format to '-' such that a deeply nested directory is not created.

@bplatz bplatz requested a review from a team November 3, 2023 20:14
@bplatz
Copy link
Contributor Author

bplatz commented Nov 3, 2023

Being based on top of feature/where-syntax-update which still has the failing policy test. Once that passes this should pass.

Base automatically changed from feature/where-syntax-update to feature/subscription November 6, 2023 16:04
Base automatically changed from feature/subscription to main November 6, 2023 16:54
Comment on lines +177 to +178
(log/warn "LOG PATH: " log-path)
(log/warn "CONN STORAGE PATH: " conn-storage-path)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want these logged at the warn level? Or at all here?

Comment on lines +185 to +186
(log/warn "LOG PATH*: " log-path*)
(log/warn "CONN STORAGE PATH*: " conn-storage-path*)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to leave these log messages in?

"If conn method is :file or :memory, returns false, else true."
[conn]
(let [method (conn-proto/-method conn)]
(if (#{:file :memory} method)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we reference this set from a shared ns? I see it's defined as fluree.server.components.consensus/replicate-file-conn-types, but not sure if we can access that here w/o a circular ref.

Copy link
Contributor

@cap10morgan cap10morgan left a comment

Choose a reason for hiding this comment

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

A couple of log messages to maybe change / remove and some DRYing up to consider. Looks good once addressed in whatever way seems best.

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