MCPcopy
hub / github.com/nats-io/nats.go / DoubleAck

Method DoubleAck

jetstream/message.go:360–362  ·  view source on GitHub ↗

DoubleAck acknowledges a message and waits for ack reply from the server. While it impacts performance, it is useful for scenarios where message loss is not acceptable.

(ctx context.Context)

Source from the content-addressed store, hash-verified

358// While it impacts performance, it is useful for scenarios where
359// message loss is not acceptable.
360func (m *jetStreamMsg) DoubleAck(ctx context.Context) error {
361 return m.ackReply(ctx, ackAck, true, ackOpts{})
362}
363
364// Nak negatively acknowledges a message. This tells the server to
365// redeliver the message.

Callers

nothing calls this directly

Calls 1

ackReplyMethod · 0.95

Tested by

no test coverage detected