diff options
author | Andreas Madsen <amwebdk@gmail.com> | 2017-11-22 13:54:38 +0100 |
---|---|---|
committer | Andreas Madsen <amwebdk@gmail.com> | 2017-12-19 18:04:43 +0100 |
commit | f3f1a9349afaee9a05dce8df0836dd4355836391 (patch) | |
tree | 8080d6724980da97b8c7c88c97b65f02d1fa6391 /lib/dgram.js | |
parent | fe257ac2078676012ed6d188e63e50827fe69d27 (diff) | |
download | android-node-v8-f3f1a9349afaee9a05dce8df0836dd4355836391.tar.gz android-node-v8-f3f1a9349afaee9a05dce8df0836dd4355836391.tar.bz2 android-node-v8-f3f1a9349afaee9a05dce8df0836dd4355836391.zip |
async_hooks: rename initTriggerId
rename initTriggerId to defaultTriggerAsyncId such it matches the rest
of our naming.
PR-URL: https://github.com/nodejs/node/pull/17273
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/dgram.js')
-rw-r--r-- | lib/dgram.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dgram.js b/lib/dgram.js index ec60765aa4..679368ec18 100644 --- a/lib/dgram.js +++ b/lib/dgram.js @@ -28,7 +28,7 @@ const dns = require('dns'); const util = require('util'); const { isUint8Array } = require('internal/util/types'); const EventEmitter = require('events'); -const { setInitTriggerId } = require('internal/async_hooks'); +const { setDefaultTriggerAsyncId } = require('internal/async_hooks'); const { UV_UDP_REUSEADDR } = process.binding('constants').os; const { async_id_symbol } = process.binding('async_wrap'); const { nextTick } = require('internal/process/next_tick'); @@ -481,7 +481,7 @@ function doSend(ex, self, ip, list, address, port, callback) { // node::SendWrap isn't instantiated and attached to the JS instance of // SendWrap above until send() is called. So don't set the init trigger id // until now. - setInitTriggerId(self[async_id_symbol]); + setDefaultTriggerAsyncId(self[async_id_symbol]); var err = self._handle.send(req, list, list.length, |