Skip to content

Commit 7d490fe

Browse files
committed
✨ Increase max code len to 10KB
1 parent 14bdd0c commit 7d490fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/sequin/consumers/consumers.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,9 +1427,9 @@ defmodule Sequin.Consumers do
14271427
sequence.table_oid == message.table_oid
14281428
end
14291429

1430-
def validate_code(code, opts \\ []) do
1431-
if byte_size(code) > Keyword.get(opts, :maxlen, 2000) do
1432-
[code: "too long"]
1430+
def validate_code(code) do
1431+
if byte_size(code) > 10_000 do
1432+
[code: "too long, the maximum is 10 kilobytes"]
14331433
else
14341434
with {:ok, ast} <- Code.string_to_quoted(code),
14351435
{:ok, body} <- Validator.unwrap(ast),

0 commit comments

Comments
 (0)