mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-21 09:29:46 +01:00
Fix formatting
This commit is contained in:
parent
4cf43ed735
commit
a7a0e23956
2 changed files with 12 additions and 10 deletions
8
utils/cache/spread_fs.go
vendored
8
utils/cache/spread_fs.go
vendored
|
|
@ -22,9 +22,11 @@ type spreadFS struct {
|
|||
|
||||
// NewSpreadFS returns a FileSystem rooted at directory dir. This FS hashes the key and
|
||||
// distributes all files in a layout like XX/XX/XXXXXXXXXX. Ex:
|
||||
// Key is abc123.300x300.jpg
|
||||
// Hash would be: c574aeb3caafcf93ee337f0cf34e31a428ba3f13
|
||||
// File in cache would be: c5 / 74 / c574aeb3caafcf93ee337f0cf34e31a428ba3f13
|
||||
//
|
||||
// Key is abc123.300x300.jpg
|
||||
// Hash would be: c574aeb3caafcf93ee337f0cf34e31a428ba3f13
|
||||
// File in cache would be: c5 / 74 / c574aeb3caafcf93ee337f0cf34e31a428ba3f13
|
||||
//
|
||||
// The idea is to avoid having too many files in one dir, which could potentially cause performance issues
|
||||
// and may hit limitations depending on the OS.
|
||||
// See discussion here: https://github.com/djherbis/fscache/issues/8#issuecomment-614319323
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue