1
0
silverbullet/plugos/lib/mq_util.ts

8 lines
235 B
TypeScript
Raw Normal View History

2023-08-10 16:32:41 +00:00
// 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;
}