Closed dvonthenen closed 2 months ago
The interval for the time.NewTicker
in the listen()
function of the Client
struct in pkg/client/live/client.go
has been shortened from 500 milliseconds to 250 milliseconds. Additionally, the error handling and message processing logic within the listen()
function has been restructured with added comments for clearer understanding.
Files | Change Summary |
---|---|
pkg/client/live/client.go |
Ticker interval in listen() changed from 500 * time.Millisecond to 250 * time.Millisecond . Enhanced error and message handling logic with additional comments for clarity. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Proposed changes
Addresses: https://github.com/deepgram/deepgram-go-sdk/issues/244
Drain the WebSocket Queue of Messages
Types of changes
What types of changes does your code introduce to the community Go SDK? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
Summary by CodeRabbit