mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-17 19:17:17 +02:00
replace xxhash with xxh3 (#5457)
* update config file paths hash * update filemgr * use xxh3 for hashutil.Hash * update hashutil digest, fix trace buffer test * update comments * update namegen, go mod tidy
This commit is contained in:
parent
5e94b2f8f1
commit
dc9a6bdb81
18 changed files with 76 additions and 66 deletions
|
@ -7,9 +7,9 @@ import (
|
|||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/cespare/xxhash/v2"
|
||||
"github.com/google/uuid"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/zeebo/xxh3"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/events"
|
||||
"github.com/pomerium/pomerium/internal/fileutil"
|
||||
|
@ -264,7 +264,7 @@ func (src *FileWatcherSource) onFileChange(ctx context.Context) {
|
|||
|
||||
func getAllConfigFilePathsHash(cfg *Config) uint64 {
|
||||
// read all the config files and build a hash from their contents
|
||||
h := xxhash.New()
|
||||
h := xxh3.New()
|
||||
for _, f := range getAllConfigFilePaths(cfg) {
|
||||
_, _ = h.Write([]byte{0})
|
||||
f, err := os.Open(f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue