diff --git a/satellite/metainfo/metainfo.go b/satellite/metainfo/metainfo.go index 821cc7ad1..715f987b3 100644 --- a/satellite/metainfo/metainfo.go +++ b/satellite/metainfo/metainfo.go @@ -53,30 +53,27 @@ type Containment interface { // Endpoint metainfo endpoint type Endpoint struct { - log *zap.Logger - metainfo *Service - orders *orders.Service - cache *overlay.Cache - projectUsage *accounting.ProjectUsage - containment Containment - apiKeys APIKeys - storagenodeAccountingDB accounting.StoragenodeAccounting + log *zap.Logger + metainfo *Service + orders *orders.Service + cache *overlay.Cache + projectUsage *accounting.ProjectUsage + containment Containment + apiKeys APIKeys } // NewEndpoint creates new metainfo endpoint instance func NewEndpoint(log *zap.Logger, metainfo *Service, orders *orders.Service, cache *overlay.Cache, containment Containment, - apiKeys APIKeys, sdb accounting.StoragenodeAccounting, - projectUsage *accounting.ProjectUsage) *Endpoint { + apiKeys APIKeys, projectUsage *accounting.ProjectUsage) *Endpoint { // TODO do something with too many params return &Endpoint{ - log: log, - metainfo: metainfo, - orders: orders, - cache: cache, - containment: containment, - apiKeys: apiKeys, - storagenodeAccountingDB: sdb, - projectUsage: projectUsage, + log: log, + metainfo: metainfo, + orders: orders, + cache: cache, + containment: containment, + apiKeys: apiKeys, + projectUsage: projectUsage, } } diff --git a/satellite/peer.go b/satellite/peer.go index 6995c724a..19469014d 100644 --- a/satellite/peer.go +++ b/satellite/peer.go @@ -369,7 +369,6 @@ func New(log *zap.Logger, full *identity.FullIdentity, db DB, config *Config, ve peer.Overlay.Service, peer.DB.Containment(), peer.DB.Console().APIKeys(), - peer.DB.StoragenodeAccounting(), peer.Accounting.ProjectUsage, )