-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple check script for ensuring successful compile
- Loading branch information
Stephen Parente
committed
Mar 15, 2018
1 parent
80a25e0
commit 5590335
Showing
3 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var kafka = require('../lib'); | ||
|
||
var p = new kafka.Producer({ 'bootstrap.servers': 'localhost:9092' }, {}); | ||
|
||
p.connect({ timeout: 1000 }, function(err) { | ||
if (!err) { | ||
p.disconnect(); | ||
} else { | ||
process.exit(0); | ||
} | ||
}); |