slight cleanup
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Dec 4, 2015 at 17:44 UTC
8fa53f81e624f3bb41b3fd071107b6d95804a0e9
1 file changed
-9
merkledag/merkledag.go
-9
@@ -3,7 +3,6 @@ package merkledag
3
4
import (
5
"fmt"
6
- "time"
6
7
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
8
blocks "github.com/ipfs/go-ipfs/blocks"
@@ -49,14 +48,6 @@ func (n *dagService) Add(nd *Node) (key.Key, error) {
48
if n == nil { // FIXME remove this assertion. protect with constructor invariant
49
return "", fmt.Errorf("dagService is nil")
50
}
52
- /*
53
- start := time.Now()
54
- defer func() {
55
- took := time.Now().Sub(start)
56
- log.Error("add took: %s", took)
57
- }()
58
- */
59
- _ = time.Saturday
51
52
d, err := nd.Encoded(false)
53
if err != nil {