{"comment":{"url":"https://api.github.com/repos/edenhill/librdkafka/comments/11847796","html_url":"https://github.com/edenhill/librdkafka/commit/cb9b64dd920ccc6f8feb0625ccf4c3f08ef5eac4#commitcomment-11847796","id":11847796,"user":{"login":"petergaultney","id":549720,"avatar_url":"https://avatars.githubusercontent.com/u/549720?v=3","gravatar_id":"","url":"https://api.github.com/users/petergaultney","html_url":"https://github.com/petergaultney","followers_url":"https://api.github.com/users/petergaultney/followers","following_url":"https://api.github.com/users/petergaultney/following{/other_user}","gists_url":"https://api.github.com/users/petergaultney/gists{/gist_id}","starred_url":"https://api.github.com/users/petergaultney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petergaultney/subscriptions","organizations_url":"https://api.github.com/users/petergaultney/orgs","repos_url":"https://api.github.com/users/petergaultney/repos","events_url":"https://api.github.com/users/petergaultney/events{/privacy}","received_events_url":"https://api.github.com/users/petergaultney/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"cb9b64dd920ccc6f8feb0625ccf4c3f08ef5eac4","created_at":"2015-06-24T21:00:39Z","updated_at":"2015-06-24T21:00:39Z","body":"Thanks for this. I was debugging an issue related to this earlier and it took me a few minutes to realize that this was probably a bug, and sure enough, you had fixed it. :)\r\n\r\nBy the way, perhaps this could be improved by using a simple macro to replace the similar sections of q_pop and q_serve? The code is nearly identical, so it would cut down on maintenance without adding the overhead of a function call."}}