Taking interface{} -> any modernize bits (#4204)

This commit is contained in:
Raja Subramanian
2025-12-28 05:22:12 +05:30
committed by GitHub
parent b91cd2e4ea
commit b8ddd0f98c
24 changed files with 135 additions and 57 deletions
+15
View File
@@ -38,6 +38,21 @@ type AnalyticsService interface {
RoomProjectReporter(ctx context.Context) roomobs.ProjectReporter
}
// ----------------------------
var _ AnalyticsService = &NullAnalyticService{}
type NullAnalyticService struct{}
func (n NullAnalyticService) SendStats(_ context.Context, _ []*livekit.AnalyticsStat) {}
func (n NullAnalyticService) SendEvent(_ context.Context, _ *livekit.AnalyticsEvent) {}
func (n NullAnalyticService) SendNodeRoomStates(_ context.Context, _ *livekit.AnalyticsNodeRooms) {}
func (n NullAnalyticService) RoomProjectReporter(_ctx context.Context) roomobs.ProjectReporter {
return nil
}
// ----------------------------
type analyticsService struct {
analyticsKey string
nodeID string