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

Update rtmt.py - pop gives the error when there are two message in the queue #73

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pmuralikrishna111
Copy link

Update rtmt.py - pop gives the error when there are two message in the queue and there will be index out of range
index out of the range.

Consider two message are in the queue and poping both like
total size is 2
pop(1) - it will remove the first element and size becomes 1
pop(2) - it will try to remove the 2nd element but size is 1 and it will be index out of bounds

…e queue and there will be index out of range

index out of the range. consider two message are in the queue and poping both like
total size is 2
pop(1) - it will remove the first element and size becomes 1
pop(2) - it will try to remove the 2nd element but size is 1 and it will be index out of bounds
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