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

CRUXX-580 improve channel publisher by always copying the depth #79

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

Conversation

phutwo
Copy link
Contributor

@phutwo phutwo commented Jun 25, 2018

The receiver interface did not have a way to return the depth of the channel on every call; it would return null or the input depth of the channel if the channel's depth did not exist or less than the input channel's depth. This fixes the interface and always returns the depth of the channel.

" current_count = tonumber(current_count)\n" +
"end\n" +
"if current_count <= tonumber($lastSeenCount$) then\n" +
" return {tostring(current_count)}\n" +

Choose a reason for hiding this comment

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

What should the caller do in this scenario? Update lastSeen to the past?

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.

2 participants