Fixed typo in new const name

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2021-01-26 15:55:00 -07:00
parent dce814009b
commit b07e176b30
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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