server/sync: add sha-224 to the sync'd prefixes

Updates #1172

Change-Id: Ic9e927aad5f90e926bd50a5ab4a17d540c3f5a2b
This commit is contained in:
Stephen Searles 2018-05-19 21:56:58 -04:00
parent a884a9181e
commit d6c616c615
1 changed files with 2 additions and 1 deletions

View File

@ -894,9 +894,10 @@ func (sh *SyncHandler) shardPrefixes() []string {
var pfx []string
// TODO(bradfitz): do limit=1 enumerates against sh.from and sh.to with varying
// "after" values to determine all the blobref types on both sides.
// For now, be lazy and assume only sha1:
// For now, be lazy and assume only sha1 and sha224:
for i := 0; i < 256; i++ {
pfx = append(pfx, fmt.Sprintf("sha1-%02x", i))
pfx = append(pfx, fmt.Sprintf("sha224-%02x", i))
}
return pfx
}