diff --git a/lib/hijack/instrument.js b/lib/hijack/instrument.js index 35cfa98b..5675954d 100644 --- a/lib/hijack/instrument.js +++ b/lib/hijack/instrument.js @@ -24,8 +24,8 @@ Kadira._startInstrumenting = async function (callback) { } instrumented = true; - await wrapStringifyDDP(); - await wrapWebApp(); + wrapStringifyDDP(); + wrapWebApp(); wrapFastRender(); wrapPicker(); wrapFs(); diff --git a/lib/hijack/wrap_ddp_stringify.js b/lib/hijack/wrap_ddp_stringify.js index 1ec6d7c2..6623336c 100644 --- a/lib/hijack/wrap_ddp_stringify.js +++ b/lib/hijack/wrap_ddp_stringify.js @@ -1,6 +1,6 @@ import { DDPCommon } from 'meteor/ddp-common'; -export async function wrapStringifyDDP () { +export function wrapStringifyDDP () { let originalStringifyDDP = DDPCommon.stringifyDDP; DDPCommon.stringifyDDP = function (msg) { diff --git a/lib/hijack/wrap_webapp.js b/lib/hijack/wrap_webapp.js index 4039f462..a0415e64 100644 --- a/lib/hijack/wrap_webapp.js +++ b/lib/hijack/wrap_webapp.js @@ -14,7 +14,7 @@ const InfoSymbol = Symbol('MontiInfoSymbol'); /** * https://github.com/meteor/meteor/pull/12442 */ -export async function wrapWebApp () { +export function wrapWebApp () { if (!canWrapStaticHandler) { return; }