1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 01:52:26 +08:00

slight cleanup

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
Jeromy
2015-12-04 17:44:08 -08:00
parent b2b415b57d
commit 8fa53f81e6

View File

@ -3,7 +3,6 @@ package merkledag
import (
"fmt"
"time"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
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
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)
if err != nil {