broker: resurrect DisableAutoAck

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2020-08-31 16:51:49 +03:00
parent b7338c12d7
commit 0252addf05

View File

@ -97,6 +97,12 @@ func Codec(c codec.Marshaler) Option {
} }
} }
func DisableAutoAck() SubscribeOption {
return func(o *SubscribeOptions) {
o.AutoAck = false
}
}
// SubscribeAutoAck will disable auto acking of messages // SubscribeAutoAck will disable auto acking of messages
// after they have been handled. // after they have been handled.
func SubscribeAutoAck(b bool) SubscribeOption { func SubscribeAutoAck(b bool) SubscribeOption {