Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Remove unreachable panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasss committed Jun 12, 2019
1 parent a1817eb commit 3327d2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consumer/consumer.go
Expand Up @@ -239,7 +239,8 @@ func (c *Consumer) handleMsg(msg *sarama.ConsumerMessage) (*Message, int) {
}
return m, attempts
}
panic("unreachable")
return nil, attempts

}

// MetricsReporter is an interface that can be passed to set metrics hook to receive metrics
Expand Down

0 comments on commit 3327d2b

Please sign in to comment.