run gofmt
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
Jeromy committed
Oct 12, 2016 at 07:00 UTC
affb06d5589a80e8a16d0e7944051e13b98e63c6
8 files changed
+8
-8
blockservice/blockservice.go
+1
-1
@@ -118,7 +118,7 @@ func (s *blockService) AddBlocks(bs []blocks.Block) ([]*cid.Cid, error) {
118
toput = append(toput, b)
119
}
120
} else {
121
- toput = bs;
121
+ toput = bs
122
}
123
124
err := s.blockstore.PutMany(toput)
cmd/ipfs/init.go
+1
-1
@@ -8,13 +8,13 @@ import (
8
"os"
9
"path"
10
11
+ context "context"
12
assets "github.com/ipfs/go-ipfs/assets"
13
cmds "github.com/ipfs/go-ipfs/commands"
14
core "github.com/ipfs/go-ipfs/core"
15
namesys "github.com/ipfs/go-ipfs/namesys"
16
config "github.com/ipfs/go-ipfs/repo/config"
17
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
17
- context "context"
18
)
19
20
const (
core/core_test.go
+1
-1
@@ -3,10 +3,10 @@ package core
3
import (
4
"testing"
5
6
+ context "context"
7
"github.com/ipfs/go-ipfs/repo"
8
config "github.com/ipfs/go-ipfs/repo/config"
9
"github.com/ipfs/go-ipfs/thirdparty/testutil"
9
- context "context"
10
)
11
12
func TestInitialization(t *testing.T) {
core/corerepo/stat.go
+1
-1
@@ -3,9 +3,9 @@ package corerepo
3
import (
4
"fmt"
5
6
+ context "context"
7
"github.com/ipfs/go-ipfs/core"
8
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
8
- context "context"
9
)
10
11
type Stat struct {
core/coreunix/cat.go
+1
-1
@@ -1,10 +1,10 @@
1
package coreunix
2
3
import (
4
+ context "context"
5
core "github.com/ipfs/go-ipfs/core"
6
path "github.com/ipfs/go-ipfs/path"
7
uio "github.com/ipfs/go-ipfs/unixfs/io"
7
- context "context"
8
)
9
10
func Cat(ctx context.Context, n *core.IpfsNode, pstr string) (*uio.DagReader, error) {
fuse/ipns/link_unix.go
+1
-1
@@ -5,9 +5,9 @@ package ipns
5
import (
6
"os"
7
8
+ "context"
9
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse"
10
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse/fs"
10
- "context"
11
)
12
13
type Link struct {
fuse/node/mount_test.go
+1
-1
@@ -9,13 +9,13 @@ import (
9
"testing"
10
"time"
11
12
+ context "context"
13
core "github.com/ipfs/go-ipfs/core"
14
ipns "github.com/ipfs/go-ipfs/fuse/ipns"
15
mount "github.com/ipfs/go-ipfs/fuse/mount"
16
namesys "github.com/ipfs/go-ipfs/namesys"
17
offroute "github.com/ipfs/go-ipfs/routing/offline"
18
ci "github.com/ipfs/go-ipfs/thirdparty/testutil/ci"
18
- context "context"
19
)
20
21
func maybeSkipFuseTests(t *testing.T) {
importer/helpers/helpers.go
+1
-1
@@ -3,10 +3,10 @@ package helpers
3
import (
4
"fmt"
5
6
+ "context"
7
chunk "github.com/ipfs/go-ipfs/importer/chunk"
8
dag "github.com/ipfs/go-ipfs/merkledag"
9
ft "github.com/ipfs/go-ipfs/unixfs"
9
- "context"
10
)
11
12
// BlockSizeLimit specifies the maximum size an imported block can have.