MCPcopy
hub / github.com/wal-g/wal-g / EmptyWriteIgnorer

Struct EmptyWriteIgnorer

utility/empty_write_ignorer.go:10–12  ·  view source on GitHub ↗

EmptyWriteIgnorer handles 0 byte write in LZ4 package to stop pipe reader/writer from blocking.

Source from the content-addressed store, hash-verified

8// EmptyWriteIgnorer handles 0 byte write in LZ4 package
9// to stop pipe reader/writer from blocking.
10type EmptyWriteIgnorer struct {
11 io.Writer
12}
13
14func (e EmptyWriteIgnorer) Write(p []byte) (int, error) {
15 if len(p) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected