Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Yang committed May 18, 2017
1 parent 916e5c9 commit 050de4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion client/cherami/outputhostconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (conn *outputHostConnection) readMessagesPump() {

cmd, err := conn.outputHostStream.Read()
if err != nil {
conn.reporter.IncCounter(metrics.OutputReadFailedRate, nil, 1)
conn.reporter.IncCounter(metrics.ConsumeReadFailedRate, nil, 1)
// Error reading from stream. Time to close and bail out.
conn.logger.Infof("Error reading OutputHost Message Stream: %v", err)
// Stream is closed. Close the connection and bail out
Expand Down
2 changes: 0 additions & 2 deletions common/metrics/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ const (
PublisherMessageFailed = "cherami.publisher.message.failed"
// PublisherMessageTimedout is the number of messages timed out on the publisher
PublisherMessageTimedout = "cherami.publisher.message.timedout"

// ConsumeReadFailedRate is the rate of consume read failures
ConsumeReadFailedRate = "cherami.consume.read.failed"

// ConsumeMessageRate is the rate of message got from output
ConsumeMessageRate = "cherami.consume.message.rate"
// ConsumeCreditRate is the rate of credit sent to output
Expand Down

0 comments on commit 050de4b

Please sign in to comment.