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

fix(lightpush): return non-empty reqId and add LP opts to builder #1103

Merged
merged 2 commits into from
May 16, 2024

Conversation

vpavlin
Copy link
Member

@vpavlin vpavlin commented May 16, 2024

Description

This PR adds missing Lightpush options to withLightpush() builder function. It also fixes a missing requestId issue which resulted in rate limitting errors showing up as missing RequestId field error.

It also enhances fitler2 example to setup lightpush on the full node with rate limit to allow for some basic experimentation.

Changes

  • New constant REQUESTID_RATE_LIMITED is defined to indicate the request was rate limited
  • ValidateResponse now returns without error when the above constant is requestId value
  • Lightpush server sets the above constant as a requestId when the rate limit is hit
  • withLightpush() now accepts lightpush.Option (i.e. rate.Limiter at the moment)

Tests

@status-im-auto
Copy link

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8904525 #1 2024-05-16 16:28:27 ~1 min nix-flake 📄log

@richard-ramos richard-ramos merged commit 879bc08 into master May 16, 2024
4 of 5 checks passed
@richard-ramos richard-ramos deleted the feat/add-lightpushopt-withlp branch May 16, 2024 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants