wtclient+lnrpc: move Stats to Manager

Move the `Stats` method from the `Client` to the `Manager` interface.
This commit is contained in:
Elle Mouton committed 2023-11-28 09:54:02 +02:00
1 parent f38b5cf258
commit 4348f2062a
3 files changed
+25 -18

No files matched your search

+2 -5
View File
@@ -104,9 +104,6 @@ type Client interface {
LookupTower(*btcec.PublicKey,
...wtdb.ClientSessionListOption) (*RegisteredTower, error)
// Stats returns the in-memory statistics of the client since startup.
Stats() ClientStats
// Policy returns the active client policy configuration.
Policy() wtpolicy.Policy
@@ -1635,8 +1632,8 @@ func (c *TowerClient) LookupTower(pubKey *btcec.PublicKey,
}, nil
}
// Stats returns the in-memory statistics of the client since startup.
func (c *TowerClient) Stats() ClientStats {
// getStats returns the in-memory statistics of the client since startup.
func (c *TowerClient) getStats() ClientStats {
return c.stats.getStatsCopy()
}