(eventType, message)
| 9 | const channel = await connection.createChannel(); |
| 10 | |
| 11 | const publish = async (eventType, message) => { |
| 12 | await channel.assertExchange(eventType, 'fanout'); |
| 13 | channel.publish(eventType, '', Buffer.from(JSON.stringify(message))); |
| 14 | }; |
| 15 | |
| 16 | return { |
| 17 | channel, |
nothing calls this directly
no outgoing calls
no test coverage detected