Skip to content

Commit

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

s.livestreamStats[livestreamID] = new(LivestreamStats)
s.livestreamStats[livestreamID] = NewLivestreamStats(livestreamID)
}

func (s *StatsScheduler) loadInitialData() error {
Expand All @@ -159,7 +159,7 @@ func (s *StatsScheduler) loadInitialData() error {
// ライブ配信初期化
var i int64 = 1
for ; i <= int64(len(initialReservationPool)); i++ {
s.livestreamStats[i] = new(LivestreamStats)
s.livestreamStats[i] = NewLivestreamStats(i)
}

// リアクション追加
Expand Down

0 comments on commit b462045

Please sign in to comment.