()
| 289 | } |
| 290 | |
| 291 | func (s *Worker) summaryLocalKvs() (uint64, string) { |
| 292 | kvEntryCountOnChain := s.sm.KvEntryCount() |
| 293 | if kvEntryCountOnChain == 0 { |
| 294 | s.lg.Info("No KV entries found in local storage") |
| 295 | return 0, "[]" |
| 296 | } |
| 297 | return summaryLocalKvs(s.sm.Shards(), s.sm.KvEntries(), kvEntryCountOnChain-1) |
| 298 | } |
| 299 | |
| 300 | // Calculate the total number of KV entries stored locally |
| 301 | func summaryLocalKvs(shards []uint64, kvEntries, lastKvIdx uint64) (uint64, string) { |
no test coverage detected