Skip to content

Commit

Permalink
experimented with reading clipset before unroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ilian2233 committed Apr 11, 2024
1 parent dd91cf4 commit f892728
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions content/clipset_unroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import (
)

func (u *UniversalUnroller) unrollClipSet(event UnrollEvent) (Content, error) {
clipSets, err := u.reader.Get([]string{event.uuid}, event.tid)
readClipSet, ok := clipSets[event.uuid]
if !ok {
return nil, errors.Join(ErrValidating, fmt.Errorf("did not find clipset"))
}
event.c = readClipSet

if !validateClipset(event.c) {
return nil, ErrValidating
}
Expand Down

0 comments on commit f892728

Please sign in to comment.