From 032b35b2ac070663736de52e5c1f0fe1ecba6efc Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Mon, 5 Jan 2015 04:48:50 -0800 Subject: [PATCH] dht: key without record validator func This is causing test failures because tests don't usually have "/-/-" format. we can decide whether or not to allow keys without validators, but for now removing. cc @whyrusleeping --- routing/dht/records.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/dht/records.go b/routing/dht/records.go index 0791f80a3..083eeb26e 100644 --- a/routing/dht/records.go +++ b/routing/dht/records.go @@ -191,8 +191,8 @@ func (dht *IpfsDHT) verifyRecord(r *pb.Record, pk ci.PubKey) error { // Now, check validity func parts := strings.Split(r.GetKey(), "/") if len(parts) < 3 { - log.Errorf("Record had bad key: %s", u.Key(r.GetKey())) - return ErrBadRecord + log.Infof("Record key does not have validator: %s", u.Key(r.GetKey())) + return nil } fnc, ok := dht.Validators[parts[1]]