cleanup
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package storage
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"crypto/sha256"
|
||||
"encoding/hex"
|
||||
"io/ioutil"
|
||||
@@ -113,8 +112,6 @@ func (s *FileSystem) storeImage(key string, img []byte) (string, error) {
|
||||
// <filestorage-root>/users/<3 characters>/<3 characters>/<48 characters>/
|
||||
// This will balance the folders in setups with many users.
|
||||
func (s *FileSystem) userDir(username string) string {
|
||||
mh := md5.New()
|
||||
mh.Write([]byte("something"))
|
||||
|
||||
hash := sha256.New224()
|
||||
if _, err := hash.Write([]byte(username)); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user