(m, channel)
| 17 | const DEFAULT_POLL_INTERVAL_IDLE = 60_000; |
| 18 | |
| 19 | function toInboundStoreMessage(m, channel) { |
| 20 | return { |
| 21 | id: m.id, |
| 22 | type: m.type, |
| 23 | payload: m.payload, |
| 24 | channel, |
| 25 | priority: m.priority || 'normal', |
| 26 | refId: m.ref_id, |
| 27 | expiresAt: m.expires_at, |
| 28 | }; |
| 29 | } |
| 30 | |
| 31 | class InboundSync { |
| 32 | constructor({ store, hubUrl, getHeaders, logger }) { |