MCPcopy Index your code
hub / github.com/perkeep/perkeep / shardPrefixes

Method shardPrefixes

pkg/server/sync.go:892–902  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

890}
891
892func (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
904func (sh *SyncHandler) newCopyStatus(sb blob.SizedRef) *copyStatus {
905 now := time.Now()

Callers 1

startFullValidationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected