Skip to content

Commit

Permalink
fix promCanAccept (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 authored Jul 2, 2024
1 parent d1def63 commit a56e158
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/stats/monitor_prom.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package stats
import (
"github.com/prometheus/client_golang/prometheus"

"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/rpc"
)

Expand Down Expand Up @@ -75,7 +76,9 @@ func (m *Monitor) promIsIdle() float64 {

func (m *Monitor) promCanAcceptRequest() float64 {
m.mu.Lock()
_, canAccept := m.canAcceptRequestLocked(&rpc.StartEgressRequest{Request: &rpc.StartEgressRequest_Web{}})
_, canAccept := m.canAcceptRequestLocked(&rpc.StartEgressRequest{
Request: &rpc.StartEgressRequest_Web{Web: &livekit.WebEgressRequest{}},
})
m.mu.Unlock()

if !m.svc.IsDisabled() && canAccept {
Expand Down

0 comments on commit a56e158

Please sign in to comment.