提交 affb06d5 作者: Jeromy

run gofmt

License: MIT
Signed-off-by: 's avatarJeromy <why@ipfs.io>
上级 7e4b74bf
...@@ -118,7 +118,7 @@ func (s *blockService) AddBlocks(bs []blocks.Block) ([]*cid.Cid, error) { ...@@ -118,7 +118,7 @@ func (s *blockService) AddBlocks(bs []blocks.Block) ([]*cid.Cid, error) {
toput = append(toput, b) toput = append(toput, b)
} }
} else { } else {
toput = bs; toput = bs
} }
err := s.blockstore.PutMany(toput) err := s.blockstore.PutMany(toput)
......
...@@ -8,13 +8,13 @@ import ( ...@@ -8,13 +8,13 @@ import (
"os" "os"
"path" "path"
context "context"
assets "github.com/ipfs/go-ipfs/assets" assets "github.com/ipfs/go-ipfs/assets"
cmds "github.com/ipfs/go-ipfs/commands" cmds "github.com/ipfs/go-ipfs/commands"
core "github.com/ipfs/go-ipfs/core" core "github.com/ipfs/go-ipfs/core"
namesys "github.com/ipfs/go-ipfs/namesys" namesys "github.com/ipfs/go-ipfs/namesys"
config "github.com/ipfs/go-ipfs/repo/config" config "github.com/ipfs/go-ipfs/repo/config"
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo" fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
context "context"
) )
const ( const (
......
...@@ -3,10 +3,10 @@ package core ...@@ -3,10 +3,10 @@ package core
import ( import (
"testing" "testing"
context "context"
"github.com/ipfs/go-ipfs/repo" "github.com/ipfs/go-ipfs/repo"
config "github.com/ipfs/go-ipfs/repo/config" config "github.com/ipfs/go-ipfs/repo/config"
"github.com/ipfs/go-ipfs/thirdparty/testutil" "github.com/ipfs/go-ipfs/thirdparty/testutil"
context "context"
) )
func TestInitialization(t *testing.T) { func TestInitialization(t *testing.T) {
......
...@@ -3,9 +3,9 @@ package corerepo ...@@ -3,9 +3,9 @@ package corerepo
import ( import (
"fmt" "fmt"
context "context"
"github.com/ipfs/go-ipfs/core" "github.com/ipfs/go-ipfs/core"
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo" fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
context "context"
) )
type Stat struct { type Stat struct {
......
package coreunix package coreunix
import ( import (
context "context"
core "github.com/ipfs/go-ipfs/core" core "github.com/ipfs/go-ipfs/core"
path "github.com/ipfs/go-ipfs/path" path "github.com/ipfs/go-ipfs/path"
uio "github.com/ipfs/go-ipfs/unixfs/io" uio "github.com/ipfs/go-ipfs/unixfs/io"
context "context"
) )
func Cat(ctx context.Context, n *core.IpfsNode, pstr string) (*uio.DagReader, error) { func Cat(ctx context.Context, n *core.IpfsNode, pstr string) (*uio.DagReader, error) {
......
...@@ -5,9 +5,9 @@ package ipns ...@@ -5,9 +5,9 @@ package ipns
import ( import (
"os" "os"
"context"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse" "github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse/fs" "github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse/fs"
"context"
) )
type Link struct { type Link struct {
......
...@@ -9,13 +9,13 @@ import ( ...@@ -9,13 +9,13 @@ import (
"testing" "testing"
"time" "time"
context "context"
core "github.com/ipfs/go-ipfs/core" core "github.com/ipfs/go-ipfs/core"
ipns "github.com/ipfs/go-ipfs/fuse/ipns" ipns "github.com/ipfs/go-ipfs/fuse/ipns"
mount "github.com/ipfs/go-ipfs/fuse/mount" mount "github.com/ipfs/go-ipfs/fuse/mount"
namesys "github.com/ipfs/go-ipfs/namesys" namesys "github.com/ipfs/go-ipfs/namesys"
offroute "github.com/ipfs/go-ipfs/routing/offline" offroute "github.com/ipfs/go-ipfs/routing/offline"
ci "github.com/ipfs/go-ipfs/thirdparty/testutil/ci" ci "github.com/ipfs/go-ipfs/thirdparty/testutil/ci"
context "context"
) )
func maybeSkipFuseTests(t *testing.T) { func maybeSkipFuseTests(t *testing.T) {
......
...@@ -3,10 +3,10 @@ package helpers ...@@ -3,10 +3,10 @@ package helpers
import ( import (
"fmt" "fmt"
"context"
chunk "github.com/ipfs/go-ipfs/importer/chunk" chunk "github.com/ipfs/go-ipfs/importer/chunk"
dag "github.com/ipfs/go-ipfs/merkledag" dag "github.com/ipfs/go-ipfs/merkledag"
ft "github.com/ipfs/go-ipfs/unixfs" ft "github.com/ipfs/go-ipfs/unixfs"
"context"
) )
// BlockSizeLimit specifies the maximum size an imported block can have. // BlockSizeLimit specifies the maximum size an imported block can have.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论