Commit b07aac01 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

remote low SnR debug statement

cc @jbenet @whyrusleeping

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>
parent 6fec6bba
...@@ -184,9 +184,7 @@ type dagService struct { ...@@ -184,9 +184,7 @@ type dagService struct {
// Add adds a node to the dagService, storing the block in the BlockService // Add adds a node to the dagService, storing the block in the BlockService
func (n *dagService) Add(nd *Node) (u.Key, error) { func (n *dagService) Add(nd *Node) (u.Key, error) {
k, _ := nd.Key() if n == nil { // FIXME remove this assertion. protect with constructor invariant
log.Debugf("DagService Add [%s]", k)
if n == nil {
return "", fmt.Errorf("dagService is nil") return "", fmt.Errorf("dagService is nil")
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment