MCPcopy Index your code
hub / github.com/syncthing/syncthing / CountNeed

Method CountNeed

internal/db/sqlite/folderdb_counts.go:34–39  ·  view source on GitHub ↗
(device protocol.DeviceID)

Source from the content-addressed store, hash-verified

32}
33
34func (s *folderDB) CountNeed(device protocol.DeviceID) (db.Counts, error) {
35 if device == protocol.LocalDeviceID {
36 return s.needSizeLocal()
37 }
38 return s.needSizeRemote(device)
39}
40
41func (s *folderDB) CountGlobal() (db.Counts, error) {
42 var res []countsRow

Callers

nothing calls this directly

Calls 2

needSizeLocalMethod · 0.95
needSizeRemoteMethod · 0.95

Tested by

no test coverage detected