-
Notifications
You must be signed in to change notification settings - Fork 80
feat: update default timeout #116
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
Conversation
Change-Id: I29a579f68634823929a7980940fe9420499d4459
|
WalkthroughThe changes update the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant CozeAPI.Builder
participant OAuthClient.OAuthBuilder
Client->>CozeAPI.Builder: Create Builder instance
CozeAPI.Builder-->>Client: Builder with default read timeout (10 minutes 33 seconds)
Client->>OAuthClient.OAuthBuilder: Create OAuthBuilder instance
OAuthClient.OAuthBuilder-->>Client: OAuthBuilder with default read timeout (50 seconds)
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
api/src/main/java/com/coze/openapi/service/service/CozeAPI.java (1)
150-156
: 10-minute default read timeout is unusually high – confirm intent
Jumping from 5 s to 600 s risks tying up OkHttp dispatcher threads if a downstream service becomes sluggish, potentially exhausting the shared executor. Consider:
- Keeping the default modest (e.g., 30 s) and letting callers opt-in to long polling via
Builder.readTimeout(...)
, or- Exposing the constant as
Duration DEFAULT_READ_TIMEOUT
for clarity instead of a bareint
.If the 10-minute window is business-critical, document it clearly in Javadoc so users understand the behaviour.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
api/pom.xml
(1 hunks)api/src/main/java/com/coze/openapi/service/service/CozeAPI.java
(1 hunks)example/pom.xml
(1 hunks)
🔇 Additional comments (2)
example/pom.xml (1)
17-20
: Version bump aligns the example module – looks good
coze-api
dependency is now0.4.1
, matching the core module. Nothing else to flag.api/pom.xml (1)
44-47
: No manual update required for version.properties
Theversion.properties
file uses Maven resource filtering (sdk.version=${project.version}
), so the${project.version}
placeholder is automatically replaced with the POM’s version at build time. You can ignore the suggestion to manually update this file.Likely an incorrect or invalid review comment.
Change-Id: Ie64f12a5f90b5251677d3101b179ca058d127768
Change-Id: I9650da9f6d1d15e6c44c869b5776b8a504c3962f
chore: update default read timeout