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

Automatically calculate number of peers #16

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

Conversation

keithharper
Copy link

Added the count-distinct-tasks function that calculates the number of peers based on the number of distinct tasks in the workflow.

Added the count-distinct-tasks function that calculates the number of peers based on the number of distinct tasks in the workflow.
@keithharper
Copy link
Author

While going through the walkthrough, I decided to add a new branch to the workflow. While doing this, I mistakingly only counted 8 distinct tasks, when the actual count was 9. This was a silly error on my part, but running lein test simply returned a failed test, with all outputs as empty vectors, which was quite confusing.

Since there seems to be a lot to take in about this platform, I figured it would make more sense to calculate the number of distinct tasks with a function rather than a hard coded value.

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.

1 participant