Shane Kilkelly 9 лет назад
Родитель
Сommit
5f0bf16c75
1 измененных файлов с 5 добавлено и 10 удалено
  1. 5 10
      services/notifications/app/coffee/Notifications.coffee

+ 5 - 10
services/notifications/app/coffee/Notifications.coffee

@@ -82,13 +82,8 @@ module.exports = Notifications =
 		db.notifications.remove searchOps, {justOne: true}, callback
 
 
-metrics.timeAsyncMethod(
-	Notifications, 'getUserNotifications',
-	'Notifications.getUserNotifications',
-	logger
-)
-metrics.timeAsyncMethod(
-	Notifications, 'addNotification',
-	'Notifications.addNotification',
-	logger
-)
+[
+	'getUserNotifications',
+	'addNotification'
+].map (method) ->
+	metrics.timeAsyncMethod(Notifications, method, 'mongo.Notifications', logger)