Skip to content

Commit 3834d85

Browse files
authored
Update Rate Limiting Example GRPC Deadline (#3166)
### 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 -->
1 parent a00218a commit 3834d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdks/aperture-js/example/rate_limit_example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function handleRequestRateLimit(apertureClient: ApertureClient) {
3131
user_id: "some_user_id",
3232
},
3333
grpcCallOptions: {
34-
deadline: Date.now() + 300, // ms
34+
deadline: Date.now() + 1000, // ms
3535
},
3636
});
3737
// END: RLStartFlow

0 commit comments

Comments
 (0)