This commit is contained in:
joy.zhou
2019-08-01 10:17:21 +08:00
parent 8259670c12
commit f91ed68946

View File

@@ -171,7 +171,10 @@ func (b *Broker) QueryShareSubscribe(topic string, qos byte) map[string]int32 {
log.Error("rpc request error:", zap.Error(err))
continue
}
result[id] = resp.ShareSubCount
if resp.ShareSubCount > 0 {
result[id] = resp.ShareSubCount
}
}
return result
}