MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Close

Method Close

internal/caches/list_file_sqlite.go:407–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405}
406
407func (this *SQLiteFileList) Close() error {
408 this.memoryCache.Destroy()
409
410 var group = goman.NewTaskGroup()
411 for _, db := range this.dbList {
412 var dbCopy = db
413 group.Run(func() {
414 if dbCopy != nil {
415 _ = dbCopy.Close()
416 }
417 })
418 }
419 group.Wait()
420
421 return nil
422}
423
424func (this *SQLiteFileList) GetDBIndex(hash string) uint64 {
425 return fnv.HashString(hash) % CountFileDB

Callers

nothing calls this directly

Calls 5

NewTaskGroupFunction · 0.92
CloseMethod · 0.65
DestroyMethod · 0.45
RunMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected