MCPcopy Create free account
hub / github.com/divan/txqr / SetRedundancyFactor

Method SetRedundancyFactor

encode.go:47–49  ·  view source on GitHub ↗

SetRedundancyFactor changes the value of redundancy factor.

(rf float64)

Source from the content-addressed store, hash-verified

45
46// SetRedundancyFactor changes the value of redundancy factor.
47func (e *Encoder) SetRedundancyFactor(rf float64) {
48 e.redundancyFactor = rf
49}
50
51func (e *Encoder) frame(blockCode int64, total int, data []byte) string {
52 return fmt.Sprintf("%d/%d/%d|%s", blockCode, e.chunkLen, total, string(data))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected