Commit f8e2eba
committed
Prevent sending key count when 0.
Since the introduction of
lightningnetwork/lnd@afc53d1,
lnd will create 255 new wallets. Those might never be used but metrics
are being sent, polluting the metric space.
This PR only send metrics when keycount is > 0 on both internal and
external branches.1 parent a1fa10f commit f8e2eba
1 file changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
213 | 217 | | |
214 | 218 | | |
0 commit comments