Skip to content

Commit 257da16

Browse files
committed
Fixed file name typo and used exporters
1 parent 28acabe commit 257da16

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

ethereumetl/cli/stream.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def stream(last_synced_block_file, lag, provider_uri, output, start_block, entit
5959
entity_types = parse_entity_types(entity_types)
6060
validate_entity_types(entity_types, output)
6161

62-
from ethereumetl.streaming.item_exporter_creator import create_item_exporter
6362
from ethereumetl.streaming.eth_streamer_adapter import EthStreamerAdapter
6463
from blockchainetl.streaming.streamer import Streamer
6564

@@ -69,7 +68,7 @@ def stream(last_synced_block_file, lag, provider_uri, output, start_block, entit
6968

7069
streamer_adapter = EthStreamerAdapter(
7170
batch_web3_provider=ThreadLocalProxy(lambda: get_provider_from_uri(provider_uri, batch=True)),
72-
item_exporter=create_item_exporter(output),
71+
item_exporter=create_item_exporters(output),
7372
batch_size=batch_size,
7473
max_workers=max_workers,
7574
entity_types=entity_types

ethereumetl/streaming/item_exporter_creator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def create_item_exporter(output):
7676
elif item_exporter_type == ItemExporterType.CONSOLE:
7777
item_exporter = ConsoleItemExporter()
7878
elif item_exporter_type == ItemExporterType.KAFKA:
79-
from blockchainetl.jobs.exporters.kafka_expoerter import KafkaItemExporter
79+
from blockchainetl.jobs.exporters.kafka_exporter import KafkaItemExporter
8080
item_exporter = KafkaItemExporter(output, item_type_to_topic_mapping={
8181
'block': 'blocks',
8282
'transaction': 'transactions',

0 commit comments

Comments
 (0)