onyx-starter icon indicating copy to clipboard operation
onyx-starter copied to clipboard

Automatically calculate number of peers

Open keithharper opened this issue 6 years ago • 1 comments

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

keithharper avatar Jun 21 '18 14:06 keithharper

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.

keithharper avatar Jun 21 '18 14:06 keithharper