diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-07-30 15:47:34 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-07-31 16:44:06 +0200 |
commit | e67886c038dc79755c14ec77bbeff6605953f9ef (patch) | |
tree | 6b36585a55796b5a29d41764175e4d6d82a0d206 /tpl/data/resources.go | |
parent | d5eda13cb2e57998210b66e080dc96e95b38e5f0 (diff) |
Consolidate all hashing to the common/hashing package
And remove now unsued hashing funcs.
Diffstat (limited to 'tpl/data/resources.go')
-rw-r--r-- | tpl/data/resources.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/data/resources.go b/tpl/data/resources.go index 3a3701d60..9e06c0cce 100644 --- a/tpl/data/resources.go +++ b/tpl/data/resources.go @@ -23,7 +23,7 @@ import ( "time" "github.com/gohugoio/hugo/cache/filecache" - "github.com/gohugoio/hugo/helpers" + "github.com/gohugoio/hugo/common/hashing" "github.com/spf13/afero" ) @@ -44,7 +44,7 @@ func (ns *Namespace) getRemote(cache *filecache.Cache, unmarshal func([]byte) (b var headers bytes.Buffer req.Header.Write(&headers) - id := helpers.MD5String(url + headers.String()) + id := hashing.MD5FromStringHexEncoded(url + headers.String()) var handled bool var retry bool |