Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to change payload limit #107

Merged
merged 3 commits into from
Oct 14, 2017

Conversation

TheRusskiy
Copy link
Contributor

Ability to change payload limit as per this issue #91

@edgurgel
Copy link
Owner

edgurgel commented Oct 8, 2017

Thanks ! I will review later this week and include on the next release

@edgurgel
Copy link
Owner

edgurgel commented Oct 8, 2017

Oh we also need to change the error message:

@invalid_data_size_json JSX.encode!(%{error: "Data key must be smaller than 10KB"})

Instead of being a module attribute we need a plain old private function that receives the max size I think.

@TheRusskiy
Copy link
Contributor Author

@edgurgel ok, do you want size to be formatted or given that the size can be any number of bytes we can just say X Bytes?

@edgurgel
Copy link
Owner

edgurgel commented Oct 9, 2017

We can just say X bytes. That's fine 👍

@@ -62,7 +62,8 @@ defmodule Poxa.EventHandler do
The event data can't be greater than 10KB
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since now this limit is configurable, could you also update this comment to reflect that this is just the default value?

@TheRusskiy
Copy link
Contributor Author

@edgurgel @iurifq thank you for the guidance, did the updates

@edgurgel edgurgel merged commit 2e26b6e into edgurgel:master Oct 14, 2017
@edgurgel
Copy link
Owner

Thanks! I'm still fixing some stuff but I intend to release a new version tomorrow. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants