gcf-common-lib 0.23.27 → 0.23.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils.ts +1 -1
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -92,7 +92,7 @@ export async function withAmqpCh(fn: (ch: Channel) => Promise<any>, url: string)
|
|
|
92
92
|
}, url);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export async function sendToQueueAsync(ch: Channel, queue: string, json: Dictionary<any>, options
|
|
95
|
+
export async function sendToQueueAsync(ch: Channel, queue: string, json: Dictionary<any>, options?: Options.Publish) {
|
|
96
96
|
const payload = Buffer.from(JSON.stringify(json));
|
|
97
97
|
const keepSending = ch.sendToQueue(queue, payload, options);
|
|
98
98
|
if (!keepSending) await new Promise(resolve => ch.once('drain', () => resolve));
|