Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
go-ipfs
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
ipfs
go-ipfs
Commits
2106b4e3
Commit
2106b4e3
authored
Mar 14, 2019
by
Łukasz Magiera
Browse files
Options
Downloads
Patches
Plain Diff
coreapi mfs: gofmt
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
65a7dbaf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/coreapi/coreapi.go
+1
-1
1 addition, 1 deletion
core/coreapi/coreapi.go
core/coreapi/mfs.go
+9
-10
9 additions, 10 deletions
core/coreapi/mfs.go
with
10 additions
and
11 deletions
core/coreapi/coreapi.go
+
1
−
1
View file @
2106b4e3
This diff is collapsed.
Click to expand it.
core/coreapi/mfs.go
+
9
−
10
View file @
2106b4e3
...
@@ -2,15 +2,15 @@ package coreapi
...
@@ -2,15 +2,15 @@ package coreapi
import
(
import
(
"context"
"context"
"errors"
"fmt"
"fmt"
"github.com/ipfs/go-mfs"
"github.com/pkg/errors"
"io"
"io"
"os"
"os"
gopath
"path"
gopath
"path"
"sync"
"sync"
"time"
"time"
"github.com/ipfs/go-mfs"
coreiface
"github.com/ipfs/interface-go-ipfs-core"
coreiface
"github.com/ipfs/interface-go-ipfs-core"
)
)
...
@@ -84,7 +84,6 @@ func (f *mfsFile) Close() error {
...
@@ -84,7 +84,6 @@ func (f *mfsFile) Close() error {
return
f
.
FileDescriptor
.
Close
()
return
f
.
FileDescriptor
.
Close
()
}
}
func
(
f
*
mfsFile
)
ReadAt
(
p
[]
byte
,
off
int64
)
(
int
,
error
)
{
func
(
f
*
mfsFile
)
ReadAt
(
p
[]
byte
,
off
int64
)
(
int
,
error
)
{
// TODO: implement in MFS with less locking
// TODO: implement in MFS with less locking
f
.
lk
.
Lock
()
f
.
lk
.
Lock
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment