tangled
alpha
login
or
join now
atscan.net
/
plcbundle-go
1
fork
atom
[DEPRECATED] Go implementation of plcbundle
1
fork
atom
overview
issues
pulls
pipelines
update sync debug info
tree.fail
4 months ago
2ec041c6
1bab80ee
+4
-4
1 changed file
expand all
collapse all
unified
split
internal
sync
syncer.go
+4
-4
internal/sync/syncer.go
···
96
97
if fetchedCount > 0 {
98
if totalIndexTime > 10*time.Millisecond {
99
-
config.Logger.Printf("[Sync] ✓ Bundle %06d | Synced: %d | Mempool: %d (+%d) | %s (index: %s)",
100
currentBundle, fetchedCount, mempoolAfter, addedOps,
101
duration.Round(time.Millisecond), totalIndexTime.Round(time.Millisecond))
102
} else {
103
-
config.Logger.Printf("[Sync] ✓ Bundle %06d | Synced: %d | Mempool: %d (+%d) | %s",
104
currentBundle, fetchedCount, mempoolAfter, addedOps, duration.Round(time.Millisecond))
105
}
106
} else if addedOps > 0 {
107
// No bundles but added to mempool
108
-
config.Logger.Printf("[Sync] ✓ Bundle %06d | Mempool: %d (+%d) | %s",
109
currentBundle, mempoolAfter, addedOps, duration.Round(time.Millisecond))
110
} else {
111
// Already up to date
112
-
config.Logger.Printf("[Sync] ✓ Bundle %06d | Up to date | %s",
113
currentBundle, duration.Round(time.Millisecond))
114
}
115
}
···
96
97
if fetchedCount > 0 {
98
if totalIndexTime > 10*time.Millisecond {
99
+
config.Logger.Printf("[Sync] ✓ Bundle %06d | synced: %d | mempool: %d (+%d) | time: %s (index: %s)",
100
currentBundle, fetchedCount, mempoolAfter, addedOps,
101
duration.Round(time.Millisecond), totalIndexTime.Round(time.Millisecond))
102
} else {
103
+
config.Logger.Printf("[Sync] ✓ Bundle %06d | synced: %d | mempool: %d (+%d) | time: %s",
104
currentBundle, fetchedCount, mempoolAfter, addedOps, duration.Round(time.Millisecond))
105
}
106
} else if addedOps > 0 {
107
// No bundles but added to mempool
108
+
config.Logger.Printf("[Sync] ✓ Bundle %06d | mempool: %d (+%d) | time: %s",
109
currentBundle, mempoolAfter, addedOps, duration.Round(time.Millisecond))
110
} else {
111
// Already up to date
112
+
config.Logger.Printf("[Sync] ✓ Bundle %06d | up to date | time: %s",
113
currentBundle, duration.Round(time.Millisecond))
114
}
115
}