[utils/kafka] provide some exit code from main

This commit is contained in:
Ivan Blinkov 2019-11-01 19:08:29 +03:00 committed by GitHub
parent 394e242328
commit 4765b7bee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@ def main():
pprint(client.poll(10000)) pprint(client.poll(10000))
client.unsubscribe() client.unsubscribe()
client.close() client.close()
return 0
if __name__ == "__main__": if __name__ == "__main__":