Shane Kilkelly пре 9 година
родитељ
комит
c6dd68a3e6
1 измењених фајлова са 5 додато и 11 уклоњено
  1. 5 11
      services/contacts/app/coffee/ContactManager.coffee

+ 5 - 11
services/contacts/app/coffee/ContactManager.coffee

@@ -31,14 +31,8 @@ module.exports = ContactManager =
 			return callback(error) if error?
 			return callback(error) if error?
 			callback null, user?.contacts
 			callback null, user?.contacts
 
 
-metrics.timeAsyncMethod(
-	ContactManager, 'touchContact',
-	'ContactManager.touchContact',
-	logger
-)
-
-metrics.timeAsyncMethod(
-	ContactManager, 'getContacts',
-	'ContactManager.getContacts',
-	logger
-)
+[
+	'touchContact',
+	'getContacts',
+].map (method) ->
+	metrics.timeAsyncMethod(ContactManager, method, 'mongo.ContactManager', logger)