Skip to content
Permalink
Browse files
add socket retry and refactor zookeeper
  • Loading branch information
hufeng committed Jun 20, 2018
1 parent b5bf41a commit 3273acf2c3208f40c80e20318d70d9d9c3d403ed
Showing 1 changed file with 2 additions and 1 deletion.
@@ -8,10 +8,11 @@ const dubbo = (module.exports = new Dubbo({
}));

//cost middleware
dubbo.use(async function costTime(ctx, next) {
/*dubbo.use(async function costTime(ctx, next) {
console.log('before dubbo cost middleware');
const startTime = Date.now();
await next();
const endTime = Date.now();
console.log('end makecostTime->', endTime - startTime);
});
*/

0 comments on commit 3273acf

Please sign in to comment.