We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fbbf70 commit a15be01Copy full SHA for a15be01
examples/kafka/kafka_event_streaming_source.py
@@ -53,6 +53,9 @@
53
# Create stream.
54
stream = rayvens.Stream('http')
55
56
+# Log all events from stream-attached sources.
57
+stream >> (lambda event: print('LOG:', event))
58
+
59
# Event source config.
60
source_config = dict(
61
kind='http-source',
@@ -65,8 +68,5 @@
65
68
# Attach source to stream.
66
69
source = stream.add_source(source_config)
67
70
-# Log all events from stream-attached sources.
-stream >> (lambda event: print('LOG:', event))
-
71
# Disconnect source after 10 seconds.
72
stream.disconnect_all(after=10)
0 commit comments