Skip to content

Commit 9083441

Browse files
author
Cihangir SAVAS
committed
Bongo: retire messageBusEvent
1 parent d611aef commit 9083441

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

node_modules_koding/bongo/lib/bongo.coffee

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,9 @@ module.exports = class Bongo extends EventEmitter
193193
handleEvent:(type, ctx, event, params)->
194194
switch type
195195
when 'instance'
196-
if event is 'messageBusEvent'
197-
@publishEventToExchange params[0]
198-
else
199-
payload = JSON.stringify params[0] or null
200-
routingKey = getInstanceRoutingKey ctx, event
201-
@enqueueUpdateInstancesEvent routingKey, payload
196+
payload = JSON.stringify params[0] or null
197+
routingKey = getInstanceRoutingKey ctx, event
198+
@enqueueUpdateInstancesEvent routingKey, payload
202199
when 'static'
203200
if event is 'broadcast'
204201
[secretChannelId, message] = params

0 commit comments

Comments
 (0)