Make compatible with go 1.1
This commit is contained in:
parent
811d4db755
commit
04ed0a20f9
|
@ -143,7 +143,9 @@ func (db *Dropbox) createDatastore(key string) (int, string, bool, error) {
|
||||||
return 0, "", false, err
|
return 0, "", false, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rhash := sha256.Sum256([]byte(b64key))
|
hash := sha256.New()
|
||||||
|
hash.Write([]byte(b64key))
|
||||||
|
rhash := hash.Sum(nil)
|
||||||
dsID := "." + encodeDBase64(rhash[:])
|
dsID := "." + encodeDBase64(rhash[:])
|
||||||
|
|
||||||
params := &url.Values{
|
params := &url.Values{
|
||||||
|
|
Reference in New Issue
Block a user