support jetstream client kind in a few places

This commit is contained in:
R.I.Pienaar
2020-02-28 14:25:53 -08:00
committed by Derek Collison
parent fc6d8826f5
commit 10a419ca3d

View File

@@ -1306,6 +1306,8 @@ func (c *client) processErr(errStr string) {
c.Errorf("Leafnode Error %s", errStr)
c.leafProcessErr(errStr)
close = false
case JETSTREAM:
c.Errorf("JetStream Error %s", errStr)
}
if close {
c.closeConnection(ParseError)
@@ -3503,6 +3505,8 @@ func (c *client) typeString() string {
return "Gateway"
case LEAF:
return "LeafNode"
case JETSTREAM:
return "JetStream"
}
return "Unknown Type"
}