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

Function ClosePublicKeyStore

crypto/kms/pubkeystore.go:340–347  ·  view source on GitHub ↗

ClosePublicKeyStore closes the public key store.

()

Source from the content-addressed store, hash-verified

338
339// ClosePublicKeyStore closes the public key store.
340func ClosePublicKeyStore() {
341 pksLock.Lock()
342 defer pksLock.Unlock()
343 if pks != nil {
344 _ = pks.db.Close()
345 pks = nil
346 }
347}
348
349func removeFileIfIsNotSQLite(filename string) (err error) {
350 var (

Callers 6

TestSaveDHTFunction · 0.92
TestDatabaseRecycleFunction · 0.92
InitPublicKeyStoreFunction · 0.85
TestDBFunction · 0.85
TestErrorPathFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by 5

TestSaveDHTFunction · 0.74
TestDatabaseRecycleFunction · 0.74
TestDBFunction · 0.68
TestErrorPathFunction · 0.68