lotus/extern/storage-fsm/lib/nullreader/nullreader.go
2020-08-10 17:40:27 +02:00

12 lines
219 B
Go

package nullreader
// TODO: extract this to someplace where it can be shared with lotus
type Reader struct{}
func (Reader) Read(out []byte) (int, error) {
for i := range out {
out[i] = 0
}
return len(out), nil
}