We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e521e commit 5bb5b6aCopy full SHA for 5bb5b6a
graph/db/kv_store.go
@@ -2149,9 +2149,14 @@ func (c *KVStore) ChanUpdatesInHorizon(startTime,
2149
c.chanCache.insert(chanid, channel)
2150
}
2151
2152
- log.Debugf("ChanUpdatesInHorizon hit percentage: %f (%d/%d)",
2153
- float64(hits)/float64(len(edgesInHorizon)), hits,
2154
- len(edgesInHorizon))
+ if len(edgesInHorizon) > 0 {
+ log.Debugf("ChanUpdatesInHorizon hit percentage: %f (%d/%d)",
+ float64(hits)/float64(len(edgesInHorizon)), hits,
2155
+ len(edgesInHorizon))
2156
+ } else {
2157
+ log.Debugf("ChanUpdatesInHorizon returned no edges in "+
2158
+ "horizon (%s, %s)", startTime, endTime)
2159
+ }
2160
2161
return edgesInHorizon, nil
2162
0 commit comments