verify task 35: deepgram reconnection logic already implemented

This commit is contained in:
leonardotrapani
2026-02-01 01:48:44 +01:00
parent e9499b0d6b
commit 192a372718
2 changed files with 10 additions and 1 deletions
+9
View File
@@ -359,4 +359,13 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
- Close(): cancels context, sends close frame, waits for reader goroutine
- Added reconnection logic (maxRetries=3, exponential backoff 1s, 2s, 4s) matching ElevenLabs pattern
- Comprehensive tests with mock WebSocket server
- All tests passing with -race flag, typecheck passes
### Task 35: Add reconnection logic to Deepgram StreamingAdapter
- Verified reconnection logic already in place from Task 34
- maxRetries=3 with retryDelays [1s, 2s, 4s] (exponential backoff)
- reconnect() method attempts re-establish with backoff, respects context cancellation
- readLoop calls reconnect() on read errors, readLoop calls reconnect() after failed reads
- SendChunk() calls reconnect() on write errors and retries the chunk
- Sends notification error to resultsCh on successful reconnect
- All tests passing with -race flag, typecheck passes
+1 -1
View File
@@ -827,7 +827,7 @@
"Context cancellation stops reconnection attempts",
"Typecheck passes"
],
"passes": false
"passes": true
},
{
"title": "Add OpenAI Realtime model to OpenAI provider",