mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Some debug prints in the puller loop skips
This commit is contained in:
parent
0bb31e16c9
commit
87764445e8
@ -111,6 +111,10 @@ loop:
|
|||||||
// device A to device B, so we have something to work against.
|
// device A to device B, so we have something to work against.
|
||||||
case <-pullTimer.C:
|
case <-pullTimer.C:
|
||||||
if !initialScanCompleted {
|
if !initialScanCompleted {
|
||||||
|
// How did we even get here?
|
||||||
|
if debug {
|
||||||
|
l.Debugln(p, "skip (initial)")
|
||||||
|
}
|
||||||
pullTimer.Reset(nextPullIntv)
|
pullTimer.Reset(nextPullIntv)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -118,6 +122,9 @@ loop:
|
|||||||
// RemoteLocalVersion() is a fast call, doesn't touch the database.
|
// RemoteLocalVersion() is a fast call, doesn't touch the database.
|
||||||
curVer := p.model.RemoteLocalVersion(p.folder)
|
curVer := p.model.RemoteLocalVersion(p.folder)
|
||||||
if curVer == prevVer {
|
if curVer == prevVer {
|
||||||
|
if debug {
|
||||||
|
l.Debugln(p, "skip (curVer == prevVer)", prevVer)
|
||||||
|
}
|
||||||
pullTimer.Reset(checkPullIntv)
|
pullTimer.Reset(checkPullIntv)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user