Skip to content

Commit af3d770

Browse files
committed
update comment
1 parent 73509ca commit af3d770

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/chipingress/types.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import (
88
)
99

1010
// IdempotencyKeyAttr is the CloudEvent extension attribute name for the per-event
11-
// idempotency key. Callers may pass this as a key in the attrKVs variadics to
12-
// supply their own key; when absent, the durable emitter defaults to sha256(body).
11+
// idempotency key. Pass it in the attributes map of NewEvent to have the key set
12+
// as a CloudEvent extension; it is also forwarded into CloudEventBatch.Idempotency
13+
// by the batch client for the server to use for deduplication.
1314
const IdempotencyKeyAttr = "idempotencykey"
1415

1516
type (

0 commit comments

Comments
 (0)