mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 02:07:59 -07:00
Fixed typo in new const name
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -124,8 +124,8 @@ const (
|
||||
// PROTO_SNIPPET_SIZE is the default size of proto to print on parse errors.
|
||||
PROTO_SNIPPET_SIZE = 32
|
||||
|
||||
// MAX_CONTOL_LINE_SNIPPET_SIZE is the default size of proto to print on max control line errors.
|
||||
MAX_CONTOL_LINE_SNIPPET_SIZE = 128
|
||||
// MAX_CONTROL_LINE_SNIPPET_SIZE is the default size of proto to print on max control line errors.
|
||||
MAX_CONTROL_LINE_SNIPPET_SIZE = 128
|
||||
|
||||
// MAX_MSG_ARGS Maximum possible number of arguments from MSG proto.
|
||||
MAX_MSG_ARGS = 4
|
||||
|
||||
@@ -1215,7 +1215,7 @@ func (c *client) overMaxControlLineLimit(arg []byte, mcl int32) error {
|
||||
}
|
||||
if len(arg) > int(mcl) {
|
||||
err := NewErrorCtx(ErrMaxControlLine, "State %d, max_control_line %d, Buffer len %d (snip: %s...)",
|
||||
c.state, int(mcl), len(c.argBuf), protoSnippet(0, MAX_CONTOL_LINE_SNIPPET_SIZE, arg))
|
||||
c.state, int(mcl), len(c.argBuf), protoSnippet(0, MAX_CONTROL_LINE_SNIPPET_SIZE, arg))
|
||||
c.sendErr(err.Error())
|
||||
c.closeConnection(MaxControlLineExceeded)
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user