Skip to content

Conversation

wyyolo
Copy link
Contributor

@wyyolo wyyolo commented Mar 3, 2024

This PR resolves #150
Add unit test for NewSourceTube and NewSinkTube.

@wyyolo
Copy link
Contributor Author

wyyolo commented Mar 4, 2024

16878cf: "DATA RACE" was found in TestNewSinkTube, so I added mutex to this commit(0a7988e) to protect resource access.

@RobertIndie RobertIndie changed the title fix : Closing the "result" within the goroutine of NewSinkTube may potentially cause a panic. fix : closing the channel within the goroutine of NewSourceTube may cause a panic. Mar 12, 2024
@RobertIndie RobertIndie changed the title fix : closing the channel within the goroutine of NewSourceTube may cause a panic. fix: prevent panic by closing channel in NewSourceTube goroutine Mar 12, 2024
@RobertIndie RobertIndie merged commit ac28d4a into FunctionStream:main Mar 12, 2024
@wyyolo wyyolo deleted the Fix branch March 12, 2024 13:58
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.

Multiple closes on the same result channle in MemoryQueueFactory

2 participants