withLock sets the old Lock of the mutation.
(node *Lock)
| 8420 | |
| 8421 | // withLock sets the old Lock of the mutation. |
| 8422 | func withLock(node *Lock) lockOption { |
| 8423 | return func(m *LockMutation) { |
| 8424 | m.oldValue = func(context.Context) (*Lock, error) { |
| 8425 | return node, nil |
| 8426 | } |
| 8427 | m.id = &node.ID |
| 8428 | } |
| 8429 | } |
| 8430 | |
| 8431 | // Client returns a new `ent.Client` from the mutation. If the mutation was |
| 8432 | // executed in a transaction (ent.Tx), a transactional client is returned. |
no outgoing calls
no test coverage detected
searching dependent graphs…