add experimental interface for saving traffic data

This commit is contained in:
OttoMao
2014-11-10 17:09:44 +08:00
parent 73de691cea
commit 0e387382c8
3 changed files with 14 additions and 4 deletions

View File

@@ -210,6 +210,12 @@ function userRequestHandler(req,userRes){
GLOBAL.recorder && GLOBAL.recorder.updateRecord(resourceInfoId,resourceInfo);
callback();
//push trafic data to rule file
},function(callback){
userRule.fetchTrafficData && userRule.fetchTrafficData(resourceInfoId,resourceInfo);
callback();
}
],function(err,result){