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

[DB-614] Make gossip available as a mem stream: $mem-gossip #4123

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

timothycoleman
Copy link
Contributor

@timothycoleman timothycoleman commented Jan 22, 2024

Added: $mem-gossip memory stream

Works very similarly to the $mem-node-state stream. Factored out a helper class.

Plugins will then be able to subscribe to the gossip like other streams without needing a special API

@timothycoleman timothycoleman changed the title Make gossip available as a mem stream: $mem-gossip Make gossip available as a mem stream: $mem-gossip (DB-614) Jan 22, 2024
Copy link

linear bot commented Jan 22, 2024

@timothycoleman
Copy link
Contributor Author

hm something might not be quite right because the UI keeps requerying immediately

Works very similarly to the $mem-node-state stream. Factored out a helper class.
Both mem streams are in the same logical log because the SubscriptionsService
currently supports one physical log and one inmemory log.
@timothycoleman timothycoleman force-pushed the timothycoleman/add-gossip-mem-stream branch from 36fd072 to 8023d6a Compare February 1, 2024 07:32
@timothycoleman timothycoleman changed the title Make gossip available as a mem stream: $mem-gossip (DB-614) [DB-614] Make gossip available as a mem stream: $mem-gossip Feb 1, 2024
@timothycoleman
Copy link
Contributor Author

Figured out the problem with help from @Lougarou, the TfLastPosition wasn't correct on the read, causing the longpoll from the UI to be responded to by the server immediately

@timothycoleman timothycoleman requested review from hayley-jean and removed request for pvanbuijtene February 1, 2024 12:08
@hayley-jean hayley-jean merged commit b939e9f into master Feb 2, 2024
9 checks passed
@hayley-jean hayley-jean deleted the timothycoleman/add-gossip-mem-stream branch February 2, 2024 15:10
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.

None yet

3 participants