| 890 | } |
| 891 | |
| 892 | func (sh *SyncHandler) shardPrefixes() []string { |
| 893 | var pfx []string |
| 894 | // TODO(bradfitz): do limit=1 enumerates against sh.from and sh.to with varying |
| 895 | // "after" values to determine all the blobref types on both sides. |
| 896 | // For now, be lazy and assume only sha1 and sha224: |
| 897 | for i := 0; i < 256; i++ { |
| 898 | pfx = append(pfx, fmt.Sprintf("sha1-%02x", i)) |
| 899 | pfx = append(pfx, fmt.Sprintf("sha224-%02x", i)) |
| 900 | } |
| 901 | return pfx |
| 902 | } |
| 903 | |
| 904 | func (sh *SyncHandler) newCopyStatus(sb blob.SizedRef) *copyStatus { |
| 905 | now := time.Now() |