Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Added in-mem producer #24

Merged
merged 2 commits into from
Sep 8, 2020
Merged

Added in-mem producer #24

merged 2 commits into from
Sep 8, 2020

Conversation

dim
Copy link
Member

@dim dim commented Sep 8, 2020

No description provided.

go.mod Show resolved Hide resolved
@@ -11,6 +11,10 @@ def publish(_message, **_opts)
def flush(**); end
end

def initialize
ObjectSpace.define_finalizer(self, proc { close })
Copy link
Member Author

Choose a reason for hiding this comment

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

@jpmedforth I added this to make sure the publisher is auto-closed but that only works if the producer is GC'd, which won't work if you assign it as a class method.

@dim dim merged commit bb9dbbc into master Sep 8, 2020
@mxmCherry mxmCherry deleted the ruby/in-mem-producer branch September 8, 2020 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants