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

Updated the memory provider to act like a very basic queue #30

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

DMXRoid
Copy link

@DMXRoid DMXRoid commented Dec 31, 2021

In the current implementation, the memory provider will just loop through a map of messages once when there's a new Subscriber. This expands the MemoryProvider out, making it a little more consistent with the code style of the others (a constructor, actually doing stuff in the shutdown, etc), and adds some more queue-like functionality using some channels and goroutines.

Copy link
Contributor

@arbarlow arbarlow left a comment

Choose a reason for hiding this comment

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

Thanks, looks good, could you do a bit of tidying and I'll be glad to accept

providers/memory/memory.go Outdated Show resolved Hide resolved
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