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

refactor(daemon): Add known-peers-store formula #2179

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

rekmarks
Copy link
Contributor

@rekmarks rekmarks commented Mar 25, 2024

Closes #2166

Replace the known peers store adapter with a dedicated known-peers-store formula type, instantiated the same way as other "special" formulas such as least-authority. The adapter used a pet-store formula under the hood. Giving it a different formula entirely is probably less likely to confuse us in the future.

Replace the known peers store adapter with a dedicated `known-peers-store`
formula type, instantiated the same way as other "special" formulas such
as `least-authority`. The adapter used a `pet-store` formula under the
hood. Giving it a different formula entirely is probably less likely to
confuse us in the future.
@rekmarks rekmarks requested a review from kriskowal March 25, 2024 18:48
Copy link
Member

@kriskowal kriskowal left a comment

Choose a reason for hiding this comment

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

Pending CI, LGTM.

'known-peers-store',
// The known peers store is just a pet store that only accepts node identifiers
// (i.e. formula numbers) as "names".
assertValidNumber,
Copy link
Member

Choose a reason for hiding this comment

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

🪄

@rekmarks rekmarks merged commit 653dd0b into master Mar 25, 2024
16 of 18 checks passed
@rekmarks rekmarks deleted the rekmarks-known-peers-formula branch March 25, 2024 19:02
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.

daemon: Add known-peers-store formula type
2 participants