HomeSoftware Heritage

client: replace the hardcoded ACCEPTED_OBJECT_TYPES by kafka introspection

Description

client: replace the hardcoded ACCEPTED_OBJECT_TYPES by kafka introspection

Remove this global variable and check, at instantiation time, that subscribed
topics exist on the kafka broker.

The semantics of the `object_types` argument is thus a bit different:
if unset (None), the client will subscribe to any existing topic on the kafka
broker that starts with the prefix.