p2p/protocols: accounting api doc updated (#847)

This commit is contained in:
Jerzy 2018-12-06 08:32:55 +01:00
parent b8454e6d9e
commit 22f62b47f0

View file

@ -12,6 +12,8 @@ type AccountingApi struct {
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 {
return &AccountingApi{m}
}