update comment
This commit is contained in:
parent
31d9c7f289
commit
d2ea46c139
@ -36,7 +36,7 @@ func SubscribeContext(ctx context.Context) broker.SubscribeOption {
|
|||||||
|
|
||||||
type ackSuccessKey struct{}
|
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 {
|
func AckOnSuccess() broker.SubscribeOption {
|
||||||
return setSubscribeOption(ackSuccessKey{}, true)
|
return setSubscribeOption(ackSuccessKey{}, true)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user