appolo-rabbit
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -20,3 +20,3 @@ { | ||
"main": "./index.js", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"license": "MIT", | ||
@@ -23,0 +23,0 @@ "repository": { |
@@ -19,2 +19,5 @@ "use strict"; | ||
} | ||
bind(item) { | ||
return this.topology.bindKey(item); | ||
} | ||
onUnhandled(handler) { | ||
@@ -21,0 +24,0 @@ this.handlers.onUnhandled(handler); |
@@ -18,2 +18,3 @@ import {} from '@appolo/engine'; | ||
import {EventDispatcher} from "@appolo/events"; | ||
import {IBindingOptions} from "./queues/IQueueOptions"; | ||
@@ -44,2 +45,5 @@ @define() | ||
public bind(item: IBindingOptions):Promise<void>{ | ||
return this.topology.bindKey(item) | ||
} | ||
@@ -46,0 +50,0 @@ public onUnhandled(handler: IHandlerFn) { |
@@ -61,5 +61,5 @@ "use strict"; | ||
_bindKeys() { | ||
return utils_1.Promises.map(this._options.bindings, item => this._bindKey(item)); | ||
return utils_1.Promises.map(this._options.bindings, item => this.bindKey(item)); | ||
} | ||
_bindKey(item) { | ||
bindKey(item) { | ||
let queue = this._queues.get(item.queue); | ||
@@ -66,0 +66,0 @@ if (!queue) { |
@@ -101,6 +101,6 @@ import {IOptions} from "../common/IOptions"; | ||
private _bindKeys() { | ||
return Promises.map(this._options.bindings, item => this._bindKey(item)) | ||
return Promises.map(this._options.bindings, item => this.bindKey(item)) | ||
} | ||
private _bindKey(item: IBindingOptions) { | ||
public bindKey(item: IBindingOptions) { | ||
let queue = this._queues.get(item.queue); | ||
@@ -107,0 +107,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126298
2455