mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 09:34:03 +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 (
|
||||
"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 {
|
||||
|
Reference in New Issue
Block a user