mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
fix up build warnings
This commit is contained in:
committed by
Alex Dadgar
parent
5e0da10bcd
commit
76b2c50dbc
@@ -320,6 +320,11 @@ func TestHTTP_AllocSnapshot(t *testing.T) {
|
||||
|
||||
func createMigrateTokenForClientAndAlloc(allocID, clientSecret string) (string, error) {
|
||||
h, err := blake2b.New512([]byte(clientSecret))
|
||||
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
h.Write([]byte(allocID))
|
||||
validMigrateToken, err := string(h.Sum(nil)), nil
|
||||
return validMigrateToken, err
|
||||
|
||||
Reference in New Issue
Block a user