Skip to content

Commit

Permalink
Merge pull request #125 from quexer/export_ack_on_success
Browse files Browse the repository at this point in the history
feat: export AckOnSuccess as server.SubscriberOption
  • Loading branch information
jochumdev authored Nov 24, 2023
2 parents 4c504d4 + 055895c commit 54179a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v4/broker/rabbitmq/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"time"

"go-micro.dev/v4/broker"
"go-micro.dev/v4/server"
"go-micro.dev/v4/client"
)

Expand Down Expand Up @@ -33,6 +34,11 @@ type appID struct{}
type externalAuth struct{}
type durableExchange struct{}

// ServerAckOnSuccess export AckOnSuccess server.SubscriberOption
func ServerAckOnSuccess() server.SubscriberOption {
return setServerSubscriberOption(ackSuccessKey{}, true)
}

// DurableQueue creates a durable queue when subscribing.
func DurableQueue() broker.SubscribeOption {
return setSubscribeOption(durableQueueKey{}, true)
Expand Down

0 comments on commit 54179a1

Please sign in to comment.