Title: Chapter 2 python examples - msg_ids.append(len(msg_ids) + 1) · Issue #8 · rabbitinaction/sourcecode · GitHub
Open Graph Title: Chapter 2 python examples - msg_ids.append(len(msg_ids) + 1) · Issue #8 · rabbitinaction/sourcecode
X Title: Chapter 2 python examples - msg_ids.append(len(msg_ids) + 1) · Issue #8 · rabbitinaction/sourcecode
Description: Hi, I think python / chapter-2 / hello_world_producer_pubconfirm.py / Line 47 is a bug although my python knowledge isn't great so Ive not added a pull request until this is confirmed? If the msg_ids set is empty i.e. all previous messag...
Open Graph Description: Hi, I think python / chapter-2 / hello_world_producer_pubconfirm.py / Line 47 is a bug although my python knowledge isn't great so Ive not added a pull request until this is confirmed? If the msg_i...
X Description: Hi, I think python / chapter-2 / hello_world_producer_pubconfirm.py / Line 47 is a bug although my python knowledge isn't great so Ive not added a pull request until this is confirmed? If the m...
Opengraph URL: https://github.com/rabbitinaction/sourcecode/issues/8
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Chapter 2 python examples - msg_ids.append(len(msg_ids) + 1)","articleBody":"Hi, I think python / chapter-2 / hello_world_producer_pubconfirm.py / Line 47 is a bug although my python knowledge isn't great so Ive not added a pull request until this is confirmed?\n\nIf the msg_ids set is empty i.e. all previous messages have been ack'ed msg_ids.append(len(msg_ids) + 1) looks to append 1 to the set when a new message is published. Later at line 31 if a successful ack is received we try and remove the delivery_tag from the set which i believe wont exist as delivery_tag is a incrementing seq no and therefore not equal to 1 as appended above. I think the src should be calling channel.next_publish_seqno (or whatever the python equivalent is) and appending this to the set instead. The blog example here http://www.rabbitmq.com/blog/2011/02/10/introducing-publisher-confirms/ uses such an approach.\n\n:-)\n","author":{"url":"https://github.com/Andy-Richards","@type":"Person","name":"Andy-Richards"},"datePublished":"2012-11-21T15:25:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/8/sourcecode/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:40f51419-e4da-eaa8-6356-85d6df868e2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB00:3B7C2:12FE29:194EE6:6A6169AF |
| html-safe-nonce | e089bbd5c9317b2eb4b77b7f6af8bdef3d675b6515c85e0ff1b5fbba36cb510d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjAwOjNCN0MyOjEyRkUyOToxOTRFRTY6NkE2MTY5QUYiLCJ2aXNpdG9yX2lkIjoiNTU1NDUxNDY5ODQwOTQzNzYxNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70e71b33aee7e0f07c1d80fb2a9650272797b3e5c8d05ae00b3a232e8d6f0135 |
| hovercard-subject-tag | issue:8547215 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/rabbitinaction/sourcecode/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b0c24bd253e983db246ff6fb57ad42cf3192d1d7ad47f53060e320855f99a607/rabbitinaction/sourcecode/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0c24bd253e983db246ff6fb57ad42cf3192d1d7ad47f53060e320855f99a607/rabbitinaction/sourcecode/issues/8 |
| og:image:alt | Hi, I think python / chapter-2 / hello_world_producer_pubconfirm.py / Line 47 is a bug although my python knowledge isn't great so Ive not added a pull request until this is confirmed? If the msg_i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andy-Richards |
| hostname | github.com |
| expected-hostname | github.com |
| None | a69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/rabbitinaction/sourcecode git https://github.com/rabbitinaction/sourcecode.git |
| octolytics-dimension-user_id | 492365 |
| octolytics-dimension-user_login | rabbitinaction |
| octolytics-dimension-repository_id | 1293854 |
| octolytics-dimension-repository_nwo | rabbitinaction/sourcecode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1293854 |
| octolytics-dimension-repository_network_root_nwo | rabbitinaction/sourcecode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 484cf265a1f970d5c7a5e7c37cb677d8010aa12f |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width