Skip to content

Commit

Permalink
Revert "use StoppableWorkers in constructor"
Browse files Browse the repository at this point in the history
This reverts commit b203203.
  • Loading branch information
bashar-515 committed Jan 24, 2025
1 parent b203203 commit 8a66f53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc/wrtc_call_queue_mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ func NewMongoDBWebRTCCallQueue(
}

// TODO(RSDK-8666): using StoppableWorkers is causing a data race
// queue.activeBackgroundWorkers.Add(1)
// utils.ManagedGo(queue.operatorLivenessLoop, queue.activeBackgroundWorkers.Done)
queue.activeStoppableWorkers.Add(func(ctx context.Context) { queue.operatorLivenessLoop() })
queue.activeBackgroundWorkers.Add(1)
utils.ManagedGo(queue.operatorLivenessLoop, queue.activeBackgroundWorkers.Done)
// queue.activeStoppableWorkers.Add(func(ctx context.Context) { queue.operatorLivenessLoop() })
queue.activeStoppableWorkers.Add(func(ctx context.Context) { queue.changeStreamManager() })

// wait for change stream to startup once before we start processing anything
Expand Down

0 comments on commit 8a66f53

Please sign in to comment.