提交 b19a931d 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

remote low SnR debug statement

cc @jbenet @whyrusleeping

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 d5789de6
...@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论