import adc.streaming as adcs
with adcs.open("kafka://{ZTF_BROKER}/{ZTF_TOPIC}, start_at="earliest") as stream:
for idx, msg in stream:
print(f"id: {idx}, contents: {msg}")
fails with
----> 2 for idx, msg in stream:
3 print(f"id: {idx}, contents: {msg}")
4
fastavro/_read.pyx in _iter_avro_records()
fastavro/_read.pyx in fastavro._read.skip_sync()
ValueError: I/O operation on closed file.
fails with