Skip to content

Commit

Permalink
fix(archive): remove queue deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Zibbp committed Oct 11, 2023
1 parent 2c26480 commit ad5c8ba
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,6 @@ func (s *Service) TaskVodSaveLiveInfo(ch *ent.Channel, v *ent.Vod, q *ent.Queue,
}

if len(stream.Data) == 0 {
log.Error().Msg("stream data is empty")
// delete queue item
err := database.DB().Client.Queue.DeleteOne(q).Exec(context.Background())
if err != nil {
log.Error().Err(err).Msg("error deleting queue item")
}
return fmt.Errorf("stream data is empty")
}

Expand Down

0 comments on commit ad5c8ba

Please sign in to comment.