Created
August 19, 2020 12:31
-
-
Save ripienaar/4ec3775fa1586180c06433ce47fc6b56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func(m *nats.Msg) { | |
// process m | |
_, err := nc.Request(m.reply, []byte("+ACK"), 2*time.Second) | |
// err here means ack was not confirmed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment