MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / DelNode

Function DelNode

crypto/kms/pubkeystore.go:304–316  ·  view source on GitHub ↗

DelNode removes PublicKey to the id.

(id proto.NodeID)

Source from the content-addressed store, hash-verified

302
303// DelNode removes PublicKey to the id.
304func DelNode(id proto.NodeID) (err error) {
305 pksLock.Lock()
306 defer pksLock.Unlock()
307 if pks == nil || pks.db == nil {
308 return ErrPKSNotInitialized
309 }
310
311 _, err = pks.db.Writer().Exec(deleteRecordSQL, string(id))
312 if err != nil {
313 err = errors.Wrap(err, "del node failed")
314 }
315 return
316}
317
318// removeBucket this bucket.
319func removeBucket() (err error) {

Callers 3

DelNodeMethod · 0.92
TestCaller_CallNodeFunction · 0.92
TestDBFunction · 0.85

Calls 2

ExecMethod · 0.65
WriterMethod · 0.65

Tested by 2

TestCaller_CallNodeFunction · 0.74
TestDBFunction · 0.68