Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/couchbase/cbft
/ getWorkerCount
Function
getWorkerCount
pindex_copy_request.go:438–444 ·
view source on GitHub ↗
(itemCount int)
Source
from the content-addressed store, hash-verified
436
}
437
438
func
getWorkerCount(itemCount int) int {
439
ncpu := runtime.NumCPU()
440
if
itemCount < ncpu {
441
return
itemCount
442
}
443
return
ncpu
444
}
Callers
2
getNodesHostingPIndex
Function · 0.85
getSupervisorMaps
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected