From 1ce1ea34aad217a92d665636b5f5361a464e8e3a Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 30 Oct 2019 10:31:32 +0000 Subject: [PATCH] hash: fix hash names for DropboxHash and CRC-32 These were unintentionally renamed as part of 1dc8bcd48cb85630 Fixes #3679 --- backend/dropbox/dropbox.go | 2 +- fs/hash/hash.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go index 8d683c5aa..3deb80328 100644 --- a/backend/dropbox/dropbox.go +++ b/backend/dropbox/dropbox.go @@ -113,7 +113,7 @@ var ( // Register with Fs func init() { - DbHashType = hash.RegisterHash("Dropbox", 64, dbhash.New) + DbHashType = hash.RegisterHash("DropboxHash", 64, dbhash.New) fs.Register(&fs.RegInfo{ Name: "dropbox", Description: "Dropbox", diff --git a/fs/hash/hash.go b/fs/hash/hash.go index feee5200c..23b211fd3 100644 --- a/fs/hash/hash.go +++ b/fs/hash/hash.go @@ -66,7 +66,7 @@ func init() { MD5 = RegisterHash("MD5", 32, md5.New) SHA1 = RegisterHash("SHA-1", 40, sha1.New) Whirlpool = RegisterHash("Whirlpool", 128, whirlpool.New) - CRC32 = RegisterHash("CRC32", 8, func() hash.Hash { return crc32.NewIEEE() }) + CRC32 = RegisterHash("CRC-32", 8, func() hash.Hash { return crc32.NewIEEE() }) } // Supported returns a set of all the supported hashes by