Merge pull request #472 from HuKeping/timestamp2snapshot

Fix a wrong function call
This commit is contained in:
David Lawrence
2016-01-18 10:01:32 -08:00

View File

@@ -327,7 +327,7 @@ func (c *Client) downloadSnapshot() error {
}
err := json.Unmarshal(raw, old)
if err == nil {
snap, err := data.TimestampFromSigned(old)
snap, err := data.SnapshotFromSigned(old)
if err == nil {
version = snap.Signed.Version
} else {