mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +08:00
slight cleanup
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -3,7 +3,6 @@ package merkledag
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
||||||
blocks "github.com/ipfs/go-ipfs/blocks"
|
blocks "github.com/ipfs/go-ipfs/blocks"
|
||||||
@ -49,14 +48,6 @@ func (n *dagService) Add(nd *Node) (key.Key, error) {
|
|||||||
if n == nil { // FIXME remove this assertion. protect with constructor invariant
|
if n == nil { // FIXME remove this assertion. protect with constructor invariant
|
||||||
return "", fmt.Errorf("dagService is nil")
|
return "", fmt.Errorf("dagService is nil")
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
start := time.Now()
|
|
||||||
defer func() {
|
|
||||||
took := time.Now().Sub(start)
|
|
||||||
log.Error("add took: %s", took)
|
|
||||||
}()
|
|
||||||
*/
|
|
||||||
_ = time.Saturday
|
|
||||||
|
|
||||||
d, err := nd.Encoded(false)
|
d, err := nd.Encoded(false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user