Skip to content

Commit 6fb69ec

Browse files
committed
Load .env in the example
1 parent 47c7440 commit 6fb69ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/firehose-consumer.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__))
22

33
require "kafka"
4+
require "dotenv"
5+
6+
Dotenv.load
47

58
KAFKA_CLIENT_CERT = ENV.fetch("KAFKA_CLIENT_CERT")
69
KAFKA_CLIENT_CERT_KEY = ENV.fetch("KAFKA_CLIENT_CERT_KEY")

0 commit comments

Comments
 (0)