Fast implementation of Git in pure Go codeberg.org/lindenii/furgit
git go
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

object/store/dual: Dual shouldn't satisfy {Object,Pack}Quarantiner at all

Runxi Yu 3bc59deb 048d36ef

-36
-2
object/store/dual/dual.go
··· 30 30 _ objectstore.Reader = (*Dual)(nil) 31 31 _ objectstore.ObjectWriter = (*Dual)(nil) 32 32 _ objectstore.PackWriter = (*Dual)(nil) 33 - _ objectstore.ObjectQuarantiner = (*Dual)(nil) 34 - _ objectstore.PackQuarantiner = (*Dual)(nil) 35 33 _ objectstore.WriterQuarantiner = (*Dual)(nil) 36 34 )
-34
object/store/dual/quarantine_begin.go
··· 6 6 // 7 7 // Labels: Deps-Borrowed, Life-Parent, Close-No. 8 8 func (dual *Dual) BeginQuarantine(opts objectstore.QuarantineOptions) (objectstore.WriterQuarantine, error) { 9 - return dual.beginQuarantine(opts) 10 - } 11 - 12 - // BeginObjectQuarantine creates one coordinated dual quarantine spanning both 13 - // stores and returns it as an object-wise quarantine. 14 - // 15 - // Labels: Deps-Borrowed, Life-Parent, Close-No. 16 - func (dual *Dual) BeginObjectQuarantine(opts objectstore.ObjectQuarantineOptions) (objectstore.ObjectQuarantine, error) { 17 - quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{ 18 - Object: opts, 19 - }) 20 - if err != nil { 21 - return nil, err 22 - } 23 - 24 - return quarantine, nil 25 - } 26 - 27 - // BeginPackQuarantine creates one coordinated dual quarantine spanning both 28 - // stores and returns it as a pack-wise quarantine. 29 - // 30 - // Labels: Deps-Borrowed, Life-Parent, Close-No. 31 - func (dual *Dual) BeginPackQuarantine(opts objectstore.PackQuarantineOptions) (objectstore.PackQuarantine, error) { 32 - quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{ 33 - Pack: opts, 34 - }) 35 - if err != nil { 36 - return nil, err 37 - } 38 - 39 - return quarantine, nil 40 - } 41 - 42 - func (dual *Dual) beginQuarantine(opts objectstore.QuarantineOptions) (*quarantine, error) { 43 9 objectQ, err := dual.object.BeginObjectQuarantine(opts.Object) 44 10 if err != nil { 45 11 return nil, err