MCPcopy
hub / github.com/etcd-io/etcd / If

Method If

client/v3/leasing/txn.go:34–38  ·  view source on GitHub ↗
(cs ...v3.Cmp)

Source from the content-addressed store, hash-verified

32}
33
34func (txn *txnLeasing) If(cs ...v3.Cmp) v3.Txn {
35 txn.cs = append(txn.cs, cs...)
36 txn.Txn = txn.Txn.If(cs...)
37 return txn
38}
39
40func (txn *txnLeasing) Then(ops ...v3.Op) v3.Txn {
41 txn.opst = append(txn.opst, ops...)

Callers

nothing calls this directly

Calls 1

IfMethod · 0.65

Tested by

no test coverage detected