MCPcopy
hub / github.com/perkeep/perkeep / getHub

Function getHub

pkg/blobserver/blobhub.go:74–79  ·  view source on GitHub ↗
(storage interface{})

Source from the content-addressed store, hash-verified

72}
73
74func getHub(storage interface{}) (BlobHub, bool) {
75 hubmu.RLock()
76 defer hubmu.RUnlock()
77 h, ok := stohub[storage]
78 return h, ok
79}
80
81// canLongPoll is set to false on App Engine. (multi-process environment...)
82var canLongPoll = true

Callers 1

GetHubFunction · 0.85

Calls 2

RLockMethod · 0.65
RUnlockMethod · 0.65

Tested by

no test coverage detected