Commit 49640211da161e2b7d524eb01a4c8cd749006502
1 parent
f0bdf3d3c5
Exists in
master
and in
1 other branch
refactor onRequestFromCore menjadi onRequestFromPartner
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
transport.js
... | ... | @@ -16,13 +16,13 @@ let _callback; |
16 | 16 | function createHttpServer() { |
17 | 17 | let listenPort = config.center_port; |
18 | 18 | |
19 | - http.createServer(onRequestFromCore).listen(listenPort, function() { | |
19 | + http.createServer(onRequestFromPartner).listen(listenPort, function() { | |
20 | 20 | logger.info('Center HTTP server listen on port ' + listenPort); |
21 | 21 | });; |
22 | 22 | } |
23 | 23 | |
24 | -function onRequestFromCore(req, res) { | |
25 | - const method_name = 'onRequestFromCore'; | |
24 | +function onRequestFromPartner(req, res) { | |
25 | + const method_name = 'onRequestFromPartner'; | |
26 | 26 | |
27 | 27 | let remote_address = req.connection.remoteAddress.replace(/^::ffff:/, ''); |
28 | 28 |