diff options
| author | 2026-03-30 18:13:06 +0000 | |
|---|---|---|
| committer | 2026-03-30 18:13:06 +0000 | |
| commit | 3bc59debb5436d6d3ffce5aa643da021aaf533ef (patch) | |
| tree | 5a76e6f89f51c70906fa9c5c1287097bd823cad1 | |
| parent | object/store/dual: Satisfy WriterQuarantiner (diff) | |
| signature | No signature | |
object/store/dual: Dual shouldn't satisfy {Object,Pack}Quarantiner at all
| -rw-r--r-- | object/store/dual/dual.go | 2 | ||||
| -rw-r--r-- | object/store/dual/quarantine_begin.go | 34 |
2 files changed, 0 insertions, 36 deletions
diff --git a/object/store/dual/dual.go b/object/store/dual/dual.go index f95a9194..81dc57d7 100644 --- a/object/store/dual/dual.go +++ b/object/store/dual/dual.go @@ -30,7 +30,5 @@ var ( _ objectstore.Reader = (*Dual)(nil) _ objectstore.ObjectWriter = (*Dual)(nil) _ objectstore.PackWriter = (*Dual)(nil) - _ objectstore.ObjectQuarantiner = (*Dual)(nil) - _ objectstore.PackQuarantiner = (*Dual)(nil) _ objectstore.WriterQuarantiner = (*Dual)(nil) ) diff --git a/object/store/dual/quarantine_begin.go b/object/store/dual/quarantine_begin.go index cd516c3e..143bd57d 100644 --- a/object/store/dual/quarantine_begin.go +++ b/object/store/dual/quarantine_begin.go @@ -6,40 +6,6 @@ import objectstore "codeberg.org/lindenii/furgit/object/store" // // Labels: Deps-Borrowed, Life-Parent, Close-No. func (dual *Dual) BeginQuarantine(opts objectstore.QuarantineOptions) (objectstore.WriterQuarantine, error) { - return dual.beginQuarantine(opts) -} - -// BeginObjectQuarantine creates one coordinated dual quarantine spanning both -// stores and returns it as an object-wise quarantine. -// -// Labels: Deps-Borrowed, Life-Parent, Close-No. -func (dual *Dual) BeginObjectQuarantine(opts objectstore.ObjectQuarantineOptions) (objectstore.ObjectQuarantine, error) { - quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{ - Object: opts, - }) - if err != nil { - return nil, err - } - - return quarantine, nil -} - -// BeginPackQuarantine creates one coordinated dual quarantine spanning both -// stores and returns it as a pack-wise quarantine. -// -// Labels: Deps-Borrowed, Life-Parent, Close-No. -func (dual *Dual) BeginPackQuarantine(opts objectstore.PackQuarantineOptions) (objectstore.PackQuarantine, error) { - quarantine, err := dual.beginQuarantine(objectstore.QuarantineOptions{ - Pack: opts, - }) - if err != nil { - return nil, err - } - - return quarantine, nil -} - -func (dual *Dual) beginQuarantine(opts objectstore.QuarantineOptions) (*quarantine, error) { objectQ, err := dual.object.BeginObjectQuarantine(opts.Object) if err != nil { return nil, err |
