Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tukeJonny committed Nov 24, 2023
1 parent b268817 commit a80a3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/internal/scheduler/stats_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (s *StatsScheduler) GetLivestreamRank(livestreamID int64) (int64, error) {
s.livestreamStatsMu.Lock()
defer s.livestreamStatsMu.Unlock()

stats := make(LivestreamStatsRanking, len(s.userStats))
stats := make(LivestreamStatsRanking, len(s.livestreamStats))
var idx int
for _, stat := range s.livestreamStats {
stats[idx] = stat
Expand Down

0 comments on commit a80a3bd

Please sign in to comment.