Skip to content

Commit

Permalink
Add more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Sep 3, 2024
1 parent c7a6441 commit 5c1dfad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handlers/accesscontrol/access-control.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ func (ac *AccessControlHandlersCollection) isAuthorized(ctx context.Context, pla

// checkViewerLimit is used to limit viewers per user globally (as configured with Gate API)
func (ac *AccessControlHandlersCollection) checkViewerLimit(playbackID string) bool {
glog.Infof("checkViewerLimit playbackID=%s", playbackID)
viewerLimitCache.mux.RLock()
defer viewerLimitCache.mux.RUnlock()

Expand Down Expand Up @@ -338,6 +339,7 @@ func (ac *AccessControlHandlersCollection) checkViewerLimit(playbackID string) b
}

func (ac *AccessControlHandlersCollection) refreshConcurrentViewerCache(playbackID string) {
glog.Infof("refreshConcurrentViewerCache playbackID=%s", playbackID)
viewerLimitCache.mux.RLock()
viewerLimit, ok := viewerLimitCache.data[playbackID]
viewerLimitCache.mux.RUnlock()
Expand Down

0 comments on commit 5c1dfad

Please sign in to comment.