1
0
silverbullet/plugos/lib/mq_util.ts
2023-08-10 18:32:41 +02:00

8 lines
235 B
TypeScript

// Adds a plug name to a queue name if it doesn't already have one.
export function fullQueueName(plugName: string, queueName: string) {
if (queueName.includes(".")) {
return queueName;
}
return plugName + "." + queueName;
}