Skip to content

Commit

Permalink
Merge bea7f22 into 2af043d
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuida committed Nov 12, 2018
2 parents 2af043d + bea7f22 commit 7b970ef
Show file tree
Hide file tree
Showing 8 changed files with 2,099 additions and 1,999 deletions.
15 changes: 4 additions & 11 deletions dev/dev.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
"use strict";

const ApiGateway = require
const ServiceBroker = require("../src/service-broker");
const util = require("util");

const broker = new ServiceBroker({
nodeID: "dev",// + process.pid,
//transporter: "mqtt://localhost:1833",
transporter: {
type: "MQTT",
options: {
host: "localhost",
qos: 1,
topicSeparator: "/"
}
},
transporter: "TCP",
metrics: true,
//logLevel: "debug",
//logObjectPrinter: o => util.inspect(o, { depth: 4, colors: true, breakLength: 50 }), // `breakLength: 50` activates multi-line object
Expand All @@ -22,7 +14,8 @@ const broker = new ServiceBroker({
broker.createService({
name: "test",
actions: {
hello(ctx) {
async hello(ctx) {
await this.broker.cacher.del('test.*');
return "Hello Moleculer";
}
}
Expand Down
Loading

0 comments on commit 7b970ef

Please sign in to comment.