MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Finish

Method Finish

internal/compressions/writer_base.go:21–31  ·  view source on GitHub ↗
(obj Writer)

Source from the content-addressed store, hash-verified

19}
20
21func (this *BaseWriter) Finish(obj Writer) error {
22 if this.isFinished {
23 return nil
24 }
25 err := obj.RawClose()
26 if err == nil && this.pool != nil {
27 this.pool.Put(obj)
28 }
29 this.isFinished = true
30 return err
31}
32
33func (this *BaseWriter) ResetFinish() {
34 this.isFinished = false

Callers

nothing calls this directly

Calls 2

RawCloseMethod · 0.65
PutMethod · 0.45

Tested by

no test coverage detected