Skip to content

Commit

Permalink
Update Rate Limiting Example GRPC Deadline (#3166)
Browse files Browse the repository at this point in the history
### Description of change

##### Checklist

- [ ] Tested in playground or other setup
- [ ] Screenshot (Grafana) from playground added to PR for 15+ minute
run
- [ ] Documentation is changed or added
- [ ] Tests and/or benchmarks are included
- [ ] Breaking changes


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
	- Adjusted the timing for a specific gRPC call to improve performance.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
karansohi authored Jan 26, 2024
1 parent a00218a commit 3834d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/aperture-js/example/rate_limit_example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function handleRequestRateLimit(apertureClient: ApertureClient) {
user_id: "some_user_id",
},
grpcCallOptions: {
deadline: Date.now() + 300, // ms
deadline: Date.now() + 1000, // ms
},
});
// END: RLStartFlow
Expand Down

0 comments on commit 3834d85

Please sign in to comment.