MCPcopy
hub / github.com/syncthing/syncthing / IndexUpdate

Method IndexUpdate

lib/model/model.go:1159–1161  ·  view source on GitHub ↗

IndexUpdate is called for incremental updates to connected devices' indexes. Implements the protocol.Model interface.

(conn protocol.Connection, idxUp *protocol.IndexUpdate)

Source from the content-addressed store, hash-verified

1157// IndexUpdate is called for incremental updates to connected devices' indexes.
1158// Implements the protocol.Model interface.
1159func (m *model) IndexUpdate(conn protocol.Connection, idxUp *protocol.IndexUpdate) error {
1160 return m.handleIndex(conn, idxUp.Folder, idxUp.Files, true, idxUp.PrevSequence, idxUp.LastSequence)
1161}
1162
1163func (m *model) handleIndex(conn protocol.Connection, folder string, fs []protocol.FileInfo, update bool, prevSequence, lastSequence int64) error {
1164 op := "Index"

Callers

nothing calls this directly

Calls 1

handleIndexMethod · 0.95

Tested by

no test coverage detected