Skip to content

Conversation

@svroonland
Copy link
Contributor

See #593

@gvolpe
Copy link
Member

gvolpe commented Sep 9, 2021

@catostrophe any chance you can give this a look? Last related change was #528 , you're probably more familiar with this.

@catostrophe
Copy link
Contributor

Will look at it soon

@svroonland
Copy link
Contributor Author

I should probably revert the changes to the demo before mergin

topic <- Resource.eval(Topic[F, Option[V]])
_ <- Resource.eval(Log[F].info(s"Creating listener for channel: $channel"))
listener = defaultListener(channel, topic, dispatcher)
_ <- Resource.make {
Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM. I see that the dispatcher leaks because it's used in the listener implementation.

pub2 = pubSub.publish(gamesChannel)
} yield Stream(
sub1.through(sink("#events")),
sub1.take(1).through(sink("#events")),
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure regarding leaving this in the demo. Can we have a test for dispatcher leakage instead?

@svroonland
Copy link
Contributor Author

Not sure if I have time to write a unit test for this in the coming weeks, I'm not intimately familiar with CE 3. So feel free to beat me to it.

@gvolpe
Copy link
Member

gvolpe commented Sep 10, 2021

There was no test for it before so I think it's better than what we have now but ideally there should be a test for it. I created an issue so it is not forgotten #597 , will merge this now, thank you both!

@gvolpe gvolpe merged commit 9cf6d70 into profunktor:series/1.x Sep 10, 2021
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.

3 participants