2960: Move streaming from volume to keepstore layer.
[arvados.git] / services / keepstore / volume.go
index a0b6fda7d3390155e35821196892406b00b933a2..f1b6781da6574312bf905f1feb080df44b25da45 100644 (file)
@@ -15,7 +15,7 @@ import (
 
 // volume is the interface to a back-end storage device.
 type volume interface {
-       BlockRead(ctx context.Context, hash string, writeTo io.Writer) (int, error)
+       BlockRead(ctx context.Context, hash string, writeTo io.WriterAt) error
        BlockWrite(ctx context.Context, hash string, data []byte) error
        DeviceID() string
        BlockTouch(hash string) error