reduce nfs file interface
This commit is contained in:
parent
f9311284fc
commit
633a1d6e25
2 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ type File interface {
|
|||
// Name returns the name of the file as presented to Open.
|
||||
Name() string
|
||||
ctxio.Writer
|
||||
ctxio.Reader
|
||||
// ctxio.Reader
|
||||
ctxio.ReaderAt
|
||||
io.Seeker
|
||||
ctxio.Closer
|
||||
|
|
|
@ -89,7 +89,7 @@ func TestNFS(t *testing.T) {
|
|||
}
|
||||
mf, _ := mem.OpenFile(ctx, "/helloworld.txt", os.O_RDONLY, 0)
|
||||
buf := make([]byte, len(b))
|
||||
if _, err = mf.Read(ctx, buf[:]); err != nil {
|
||||
if _, err = mf.ReadAt(ctx, buf[:], 0); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !bytes.Equal(buf, b) {
|
||||
|
|
Loading…
Reference in a new issue