mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/protocols: accounting api doc updated (#847)
This commit is contained in:
parent
b8454e6d9e
commit
22f62b47f0
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ type AccountingApi struct {
|
||||||
metrics *AccountingMetrics
|
metrics *AccountingMetrics
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewAccountingApi creates a new AccountingApi
|
||||||
|
// If m is not nil, it will be used to get accounting metrics
|
||||||
func NewAccountingApi(m *AccountingMetrics) *AccountingApi {
|
func NewAccountingApi(m *AccountingMetrics) *AccountingApi {
|
||||||
return &AccountingApi{m}
|
return &AccountingApi{m}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue