MCPcopy Create free account
hub / github.com/Azure/peerd / getKey

Method getKey

pkg/cache/filecache.go:142–144  ·  view source on GitHub ↗
(name string, offset int64)

Source from the content-addressed store, hash-verified

140}
141
142func (c *fileCache) getKey(name string, offset int64) string {
143 return filepath.Join(c.path, name, strconv.FormatInt(offset, 10))
144}
145
146func waitForSet() {
147 time.Sleep(10 * time.Millisecond)

Callers 4

ExistsMethod · 0.95
GetOrCreateMethod · 0.95
TestGetKeyFunction · 0.80
TestExistsFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestGetKeyFunction · 0.64
TestExistsFunction · 0.64