Add quit option to Node.js worker

This commit is contained in:
Vijay Pai 2016-02-02 10:05:43 -08:00
parent 64f3da63ee
commit b6c01aaeb1
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@
var BenchmarkClient = require('./benchmark_client');
var BenchmarkServer = require('./benchmark_server');
exports.quitWorker = function quitWorker(call, callback) {
callback(null, {});
process.exit(0);
}
exports.runClient = function runClient(call) {
var client;
call.on('data', function(request) {