Skip to content

Commit

Permalink
Fixed a stupid error with the host config of the writer
Browse files Browse the repository at this point in the history
  • Loading branch information
M. Peter committed Jul 22, 2016
1 parent 26d0b76 commit f1488c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ The writer is connected to `nsqd`
## Release History
|Version|Date|Description|
|:--:|:--:|:--|
|0.1.2|2016-07-22|Fixed a stupid error with the host config of the writer|
|0.1.1|2016-07-19|Removed debugging output|
|0.1.0|2016-07-15|Updated dependencies [Issue#2](https://github.com/mpneuried/nsq-logger/issues/2) and optimized activate [Issue#3](https://github.com/mpneuried/nsq-logger/issues/3)|
|0.0.7|2016-01-20|Added raw nsqjs Message as last argument to the `message` event |
Expand Down
2 changes: 1 addition & 1 deletion _src/writer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class NsqWriter extends require( "./basic" )
if @client?
return @client

@client = new nsq.Writer( "127.0.0.1", @config.port, @config )
@client = new nsq.Writer( @config.host, @config.port, @config )

@client.on( nsq.Writer.READY, @onConnect )
@client.on( nsq.Writer.CLOSED, @onDisconnect )
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nsq-logger",
"version": "0.1.1",
"version": "0.1.2",
"description": "A nsq reader factory to handle readers multiple topics based on the `nsq-topics` module",
"keywords": [],
"homepage": "https://github.com/mpneuried/nsq-logger",
Expand Down

0 comments on commit f1488c9

Please sign in to comment.