MCPcopy
hub / github.com/syncthing/syncthing / scheduleConnectionPromotion

Method scheduleConnectionPromotion

lib/model/model.go:2351–2355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2349}
2350
2351func (m *model) scheduleConnectionPromotion() {
2352 // Keeps deferring to prevent multiple executions in quick succession,
2353 // e.g. if multiple connections to a single device are closed.
2354 m.promotionTimer.Reset(time.Second)
2355}
2356
2357// promoteConnections checks for devices that have connections, but where
2358// the primary connection hasn't started index handlers etc. yet, and

Callers 2

ClosedMethod · 0.95
AddConnectionMethod · 0.95

Calls 1

ResetMethod · 0.65

Tested by

no test coverage detected