@avtechno/sfr 1.0.8 → 1.0.9

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.
@@ -37,9 +37,9 @@ export class SFRPipeline {
37
37
  async init(base_url) {
38
38
  this.base_url = base_url;
39
39
  if (this.comms["MQ"]) {
40
+ const channel = await this.comms["MQ"].createChannel();
40
41
  //Create channels for each type of Communication Pattern
41
42
  const channels = await Promise.all(PATTERNS.map(async (v) => {
42
- const channel = await this.comms["MQ"].createChannel();
43
43
  const mq = TARGETED_PATTERN.includes(v) ? new TargetedMQ(channel, v) : new BroadcastMQ(channel, v);
44
44
  return [v, mq];
45
45
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avtechno/sfr",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "An opinionated way of writing services using ExpressJS.",
5
5
  "type": "module",
6
6
  "files": [
@@ -37,9 +37,9 @@ export class SFRPipeline {
37
37
  async init(base_url?: string): Promise<ServiceDocuments> {
38
38
  this.base_url = base_url;
39
39
  if(this.comms["MQ"]){
40
+ const channel = await this.comms["MQ"].createChannel();
40
41
  //Create channels for each type of Communication Pattern
41
42
  const channels = await Promise.all(PATTERNS.map(async (v) => {
42
- const channel = await this.comms["MQ"].createChannel();
43
43
  const mq = TARGETED_PATTERN.includes(v) ? new TargetedMQ(channel, v) : new BroadcastMQ(channel, v);
44
44
 
45
45
  return [v, mq];