Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bashar-515 committed Jan 24, 2025
1 parent 0840eba commit 7eb91ef
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions rpc/wrtc_call_queue_mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,16 @@ func (queue *mongoDBWebRTCCallQueue) operatorLivenessLoop() {
})
}

if _, err := queue.operatorsColl.UpdateOne(queue.activeStoppableWorkers.Context(), bson.D{{webrtcOperatorIDField, queue.operatorID}}, bson.D{
{
"$set",
bson.D{
{webrtcOperatorExpireAtField, time.Now().Add(operatorHeartbeatWindow)},
{webrtcOperatorHostsField, hostSizes},
if _, err := queue.operatorsColl.UpdateOne(queue.activeStoppableWorkers.Context(), bson.D{{webrtcOperatorIDField, queue.operatorID}},
bson.D{
{
"$set",
bson.D{
{webrtcOperatorExpireAtField, time.Now().Add(operatorHeartbeatWindow)},
{webrtcOperatorHostsField, hostSizes},
},
},
},
}); err != nil {
}); err != nil {
if !errors.Is(err, context.Canceled) {
queue.logger.Errorw("failed to update operator document for self", "error", err)
}
Expand Down

0 comments on commit 7eb91ef

Please sign in to comment.