storagenode/orders: add missing mon.Task parameter

Change-Id: If98cf347a81f29698a6bdb0907520d60f71db433
This commit is contained in:
Stefan Benten 2020-09-06 01:06:06 +02:00
parent 2111d90684
commit 179b5adad4

View File

@ -179,7 +179,7 @@ func (service *Service) CleanArchive(ctx context.Context, deleteBefore time.Time
// SendOrders sends the orders using now as the current time. // SendOrders sends the orders using now as the current time.
func (service *Service) SendOrders(ctx context.Context, now time.Time) { func (service *Service) SendOrders(ctx context.Context, now time.Time) {
defer mon.Task()(&ctx) defer mon.Task()(&ctx)(nil)
service.log.Debug("sending") service.log.Debug("sending")
// If there are orders in the database, send from there. // If there are orders in the database, send from there.
@ -193,7 +193,7 @@ func (service *Service) SendOrders(ctx context.Context, now time.Time) {
} }
func (service *Service) sendOrdersFromDB(ctx context.Context) (hasOrders bool) { func (service *Service) sendOrdersFromDB(ctx context.Context) (hasOrders bool) {
defer mon.Task()(&ctx) defer mon.Task()(&ctx)(nil)
const batchSize = 1000 const batchSize = 1000
hasOrders = true hasOrders = true
@ -388,7 +388,7 @@ func (service *Service) settle(ctx context.Context, log *zap.Logger, satelliteID
} }
func (service *Service) sendOrdersFromFileStore(ctx context.Context, now time.Time) { func (service *Service) sendOrdersFromFileStore(ctx context.Context, now time.Time) {
defer mon.Task()(&ctx) defer mon.Task()(&ctx)(nil)
errorSatellites := make(map[storj.NodeID]struct{}) errorSatellites := make(map[storj.NodeID]struct{})
var errorSatellitesMu sync.Mutex var errorSatellitesMu sync.Mutex