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.
This commit is contained in:
parent
ca18efb1fe
commit
88142764e9
1 changed files with 0 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue