update comment

This commit is contained in:
Asim Aslam 2019-01-28 08:20:25 +00:00 committed by Vasiliy Tolstov
parent 31d9c7f289
commit d2ea46c139

View File

@ -36,7 +36,7 @@ func SubscribeContext(ctx context.Context) broker.SubscribeOption {
type ackSuccessKey struct{}
// AckOnSuccess allow to AutoAck messages when handler returns without error
// AckOnSuccess will automatically acknowledge messages when no error is returned
func AckOnSuccess() broker.SubscribeOption {
return setSubscribeOption(ackSuccessKey{}, true)
}