Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 387db8d

Browse files
authored
Fix arguments in amqp monitor (#942)
1 parent cce6e42 commit 387db8d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

source/common/amqpClient.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class RpcClient {
6565
delete this.callMap[msg.corrID];
6666
}
6767
} else {
68-
log.warn('Late rpc reply:', message);
68+
log.warn('Late rpc reply:', msg);
6969
}
7070
} catch (err) {
7171
log.error('Error processing response: ', err);
@@ -321,10 +321,11 @@ class TopicParticipant {
321321
}
322322

323323
class Monitor {
324-
constructor(amqpCli) {
324+
constructor(amqpCli, onMessage) {
325325
this.bus = amqpCli;
326326
this.queue = '';
327327
this.ready = false;
328+
this.onMessage = onMessage;
328329
}
329330

330331
setup() {
@@ -351,10 +352,6 @@ class Monitor {
351352
});
352353
}
353354

354-
setMsgReceiver(onMessage) {
355-
this.onMessage = onMessage;
356-
};
357-
358355
close() {
359356
this.ready = false;
360357
return this.bus.channel.cancel(this.consumerTag)

0 commit comments

Comments
 (0)