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

Fix issue with multiple input signals #20

Merged
merged 2 commits into from
Aug 29, 2023

Conversation

valerauko
Copy link
Contributor

Fixes #19

In subscribe, input signals are checked for vector? and map?. However in build-sub-map, in case of multiple input sugars, it uses map, resulting in a LazySeq which is neither a vector? nor a map?.

Trying to <! from (or deref) a LazySeq results in "No extension of protocol IDeref found for type LazySeq".

Using mapv in build-sub-map resolves the issue.

Added a test case for this scenario.

@wkok
Copy link
Collaborator

wkok commented Aug 29, 2023

Excellent. Thank you!

@wkok wkok merged commit 0fd4f4b into htihospitality:main Aug 29, 2023
1 check passed
@valerauko valerauko deleted the multiple-inputs branch August 29, 2023 06:41
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 input signals don't work
2 participants