(streamId: string, operation = 'clear_outbox')
| 99 | } |
| 100 | |
| 101 | export async function clearBuffer(streamId: string, operation = 'clear_outbox'): Promise<void> { |
| 102 | await withRedisRetry({ operation, streamId }, async (redis) => { |
| 103 | await redis.del(getEventsKey(streamId), getSeqKey(streamId), getAbortKey(streamId)) |
| 104 | }) |
| 105 | } |
| 106 | |
| 107 | export async function scheduleBufferCleanup( |
| 108 | streamId: string, |
no test coverage detected