()
| 405 | } |
| 406 | |
| 407 | func (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 | |
| 424 | func (this *SQLiteFileList) GetDBIndex(hash string) uint64 { |
| 425 | return fnv.HashString(hash) % CountFileDB |
nothing calls this directly
no test coverage detected