snowcrumble opened a new pull request #6023: [Issue 5602][pulsar-client-go]Add DeliverAfter option for go client URL: https://github.com/apache/pulsar/pull/6023 ### Motivation Add delay message feature for go client ### Modifications 1. Add DeliverAfter field to struct ProducerMessage. 2. Add func durationToUnixTimestampMillis because DeliverAfter is a time.Duration. 3. Call C.pulsar_message_set_deliver_after when building message if DeliverAfter is not zero. 4. Add TestProducer_DelayMessage for unit test that covers failover and shared mode as DelayedDeliveryTest.java does. ### Verifying this change - [ ] Make sure that the change passes the CI checks. *(Please pick either of the following options)* This change is a trivial rework / code cleanup without any test coverage. *(or)* This change is already covered by existing tests, such as *(please describe tests)*. *(or)* This change added tests and can be verified as follows: *(example:)* - *Added integration tests for end-to-end deployment with large payloads (10MB)* - *Extended integration test for recovery after broker failure* ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): no - The public API: no - The schema: no - The default values of configurations: no - The wire protocol: no - The rest endpoints: no - The admin cli options: no - Anything that affects deployment: no ### Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? docs
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services