Skip to content

Commit

Permalink
Merge pull request #172 from VladoLavor/dev
Browse files Browse the repository at this point in the history
fixed kafka statuscheck
  • Loading branch information
rastislavs authored Sep 26, 2017
2 parents d80416b + 51fbeac commit 9b5e162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messaging/kafka/plugin_impl_kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (plugin *Plugin) AfterInit() error {
// Register for providing status reports (polling mode)
if plugin.StatusCheck != nil && !plugin.disabled {
plugin.StatusCheck.Register(plugin.PluginName, func() (statuscheck.PluginState, error) {
if plugin.mux.Consumer == nil || plugin.mux.Consumer.Client == nil {
if plugin.hsClient == nil || plugin.hsClient.Closed() {
return statuscheck.Error, fmt.Errorf("kafka client/consumer not initialized")
}
// Method 'RefreshMetadata()' returns error if kafka server is unavailable
Expand Down

0 comments on commit 9b5e162

Please sign in to comment.