{"action":"closed","issue":{"url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/113","labels_url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/113/comments","events_url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/issues/113/events","html_url":"https://github.com/noodlefrenzy/node-amqp10/issues/113","id":89232836,"number":113,"title":"creditPolicy() stops getting called once link.linkCredit reaches 0","user":{"login":"jacoscaz","id":3322119,"avatar_url":"https://avatars.githubusercontent.com/u/3322119?v=3","gravatar_id":"","url":"https://api.github.com/users/jacoscaz","html_url":"https://github.com/jacoscaz","followers_url":"https://api.github.com/users/jacoscaz/followers","following_url":"https://api.github.com/users/jacoscaz/following{/other_user}","gists_url":"https://api.github.com/users/jacoscaz/gists{/gist_id}","starred_url":"https://api.github.com/users/jacoscaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacoscaz/subscriptions","organizations_url":"https://api.github.com/users/jacoscaz/orgs","repos_url":"https://api.github.com/users/jacoscaz/repos","events_url":"https://api.github.com/users/jacoscaz/events{/privacy}","received_events_url":"https://api.github.com/users/jacoscaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/noodlefrenzy/node-amqp10/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-18T08:31:21Z","updated_at":"2015-06-19T12:32:16Z","closed_at":"2015-06-19T12:32:16Z","body":"Hello Michael.\r\n\r\nThank you for your work on this module. I'm implementing a custom `creditPolicy()` for a consumer that, from time to time, needs to throttle incoming messages down to 0 as it's busy dealing with previous ones. However, unless I add at least 1 credit as soon as `link.linkCredit` hits 0, the AMQP client instance stops calling `creditPolicy()` altogether and I find myself unable to throttle incoming messages back up again.\r\n\r\nIs this something you'd consider having a look at? Should I approach this issue in a different way?\r\n\r\nThanks for your time. \r\n\r\n"}}