mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Fix compilation error.
Fix for https://github.com/chrislusf/seaweedfs/issues/150
This commit is contained in:
parent
32ba7fc6c0
commit
e09f45f5ed
|
@ -52,7 +52,8 @@ type File struct {
|
|||
Name string
|
||||
}
|
||||
|
||||
func (File) Attr(attr *fuse.Attr) {
|
||||
func (File) Attr(context context.Context, attr *fuse.Attr) error {
|
||||
return nil
|
||||
}
|
||||
func (File) ReadAll(ctx context.Context) ([]byte, error) {
|
||||
return []byte("hello, world\n"), nil
|
||||
|
@ -63,7 +64,8 @@ type Dir struct {
|
|||
Id uint64
|
||||
}
|
||||
|
||||
func (dir Dir) Attr(attr *fuse.Attr) {
|
||||
func (dir Dir) Attr(context context.Context, attr *fuse.Attr) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (dir Dir) Lookup(ctx context.Context, name string) (fs.Node, error) {
|
||||
|
|
Loading…
Reference in a new issue