Skip to content

Commit

Permalink
[cache/fs] SHA-1 → SHA-256
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jul 30, 2024
1 parent 0eb4560 commit c26c58e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cache/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package fs
// ////////////////////////////////////////////////////////////////////////////////// //

import (
"crypto/sha1"
"crypto/sha256"
"encoding/gob"
"fmt"
"hash"
Expand Down Expand Up @@ -74,7 +74,7 @@ func New(config Config) (*Cache, error) {
c := &Cache{
dir: config.Dir,
expiration: config.DefaultExpiration,
hasher: sha1.New(),
hasher: sha256.New(),
}

if config.CleanupInterval != 0 {
Expand Down

0 comments on commit c26c58e

Please sign in to comment.