From 88142764e96bf3fc19cc2c58ac495c4e66e154d7 Mon Sep 17 00:00:00 2001 From: Bobby Rullo Date: Wed, 8 Jun 2016 11:54:15 -0700 Subject: [PATCH] db: Don't check that trusted peers clients exist Checking that trusted peers exist means that you have to create clients in a certain order, or else create all the clients, then update trusted peers. Either way, not a great experience during setup. The downside, of course, is that you lose validation of peer IDs. --- db/client.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/db/client.go b/db/client.go index 4a2ec754..eeb80c70 100644 --- a/db/client.go +++ b/db/client.go @@ -313,14 +313,6 @@ func (r *clientRepo) SetTrustedPeers(tx repo.Transaction, clientID string, clien return err } - // Verify that all the clients are valid - for _, curID := range clientIDs { - _, err := r.get(tx, curID) - if err != nil { - return err - } - } - // Set the clients rows := []interface{}{} for _, curID := range clientIDs {