例如:
{myshovel, [
{sources, ...}
, {destinations, ...}
, {queue, <<>>}
, {ack_mode, on_confirm}
, {publish_properties, [
{delivery_mode, 2}
, {timestamp, now} % this is the line I need to understand how to write
]}
, {publish_fields, [{exchange, <<"">>}, {routing_key, <<"">>}]}
, {reconnect_delay, 5}
]}
我很好奇如何以publish_properties
某种方式编写,以便 RabbitMQ Shovel 用当前时间覆盖时间戳(就像当铲子接收到消息并将其铲到目标队列时一样)。