mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 10:47:51 +08:00
run gofmt
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
This commit is contained in:
parent
7e4b74bf5e
commit
affb06d558
@ -118,7 +118,7 @@ func (s *blockService) AddBlocks(bs []blocks.Block) ([]*cid.Cid, error) {
|
||||
toput = append(toput, b)
|
||||
}
|
||||
} else {
|
||||
toput = bs;
|
||||
toput = bs
|
||||
}
|
||||
|
||||
err := s.blockstore.PutMany(toput)
|
||||
|
||||
@ -8,13 +8,13 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
context "context"
|
||||
assets "github.com/ipfs/go-ipfs/assets"
|
||||
cmds "github.com/ipfs/go-ipfs/commands"
|
||||
core "github.com/ipfs/go-ipfs/core"
|
||||
namesys "github.com/ipfs/go-ipfs/namesys"
|
||||
config "github.com/ipfs/go-ipfs/repo/config"
|
||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
||||
context "context"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@ -3,10 +3,10 @@ package core
|
||||
import (
|
||||
"testing"
|
||||
|
||||
context "context"
|
||||
"github.com/ipfs/go-ipfs/repo"
|
||||
config "github.com/ipfs/go-ipfs/repo/config"
|
||||
"github.com/ipfs/go-ipfs/thirdparty/testutil"
|
||||
context "context"
|
||||
)
|
||||
|
||||
func TestInitialization(t *testing.T) {
|
||||
|
||||
@ -3,9 +3,9 @@ package corerepo
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
context "context"
|
||||
"github.com/ipfs/go-ipfs/core"
|
||||
fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
|
||||
context "context"
|
||||
)
|
||||
|
||||
type Stat struct {
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
package coreunix
|
||||
|
||||
import (
|
||||
context "context"
|
||||
core "github.com/ipfs/go-ipfs/core"
|
||||
path "github.com/ipfs/go-ipfs/path"
|
||||
uio "github.com/ipfs/go-ipfs/unixfs/io"
|
||||
context "context"
|
||||
)
|
||||
|
||||
func Cat(ctx context.Context, n *core.IpfsNode, pstr string) (*uio.DagReader, error) {
|
||||
|
||||
@ -5,9 +5,9 @@ package ipns
|
||||
import (
|
||||
"os"
|
||||
|
||||
"context"
|
||||
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse"
|
||||
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/bazil.org/fuse/fs"
|
||||
"context"
|
||||
)
|
||||
|
||||
type Link struct {
|
||||
|
||||
@ -9,13 +9,13 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
context "context"
|
||||
core "github.com/ipfs/go-ipfs/core"
|
||||
ipns "github.com/ipfs/go-ipfs/fuse/ipns"
|
||||
mount "github.com/ipfs/go-ipfs/fuse/mount"
|
||||
namesys "github.com/ipfs/go-ipfs/namesys"
|
||||
offroute "github.com/ipfs/go-ipfs/routing/offline"
|
||||
ci "github.com/ipfs/go-ipfs/thirdparty/testutil/ci"
|
||||
context "context"
|
||||
)
|
||||
|
||||
func maybeSkipFuseTests(t *testing.T) {
|
||||
|
||||
@ -3,10 +3,10 @@ package helpers
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"context"
|
||||
chunk "github.com/ipfs/go-ipfs/importer/chunk"
|
||||
dag "github.com/ipfs/go-ipfs/merkledag"
|
||||
ft "github.com/ipfs/go-ipfs/unixfs"
|
||||
"context"
|
||||
)
|
||||
|
||||
// BlockSizeLimit specifies the maximum size an imported block can have.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user