X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cad7d333436703d48c2811de8a26caef9fc130ad..6ce00fb7121813f187b555435a3f01c2aa380f93:/sdk/go/keepclient/block_cache.go diff --git a/sdk/go/keepclient/block_cache.go b/sdk/go/keepclient/block_cache.go index c1138fab99..539975e161 100644 --- a/sdk/go/keepclient/block_cache.go +++ b/sdk/go/keepclient/block_cache.go @@ -51,15 +51,15 @@ func (c *BlockCache) Sweep() { // ReadAt returns data from the cache, first retrieving it from Keep if // necessary. -func (c *BlockCache) ReadAt(kc *KeepClient, locator string, p []byte, off int64) (int, error) { +func (c *BlockCache) ReadAt(kc *KeepClient, locator string, p []byte, off int) (int, error) { buf, err := c.Get(kc, locator) if err != nil { return 0, err } - if off > int64(len(buf)) { + if off > len(buf) { return 0, io.ErrUnexpectedEOF } - return copy(p, buf[int(off):]), nil + return copy(p, buf[off:]), nil } // Get returns data from the cache, first retrieving it from Keep if