(mutator func(ctx context.Context, id idpool.ID, key AllocatorKey) error)
| 119 | } |
| 120 | |
| 121 | func (d *dummyBackend) setUpdateSlaveKeyMutator(mutator func(ctx context.Context, id idpool.ID, key AllocatorKey) error) { |
| 122 | d.mutex.Lock() |
| 123 | defer d.mutex.Unlock() |
| 124 | d.updateSlaveKeyHandler = mutator |
| 125 | } |
| 126 | |
| 127 | func (d *dummyBackend) UpdateKey(ctx context.Context, id idpool.ID, key AllocatorKey, reliablyMissing bool) error { |
| 128 | if err := d.updateMasterKey(ctx, id, key, reliablyMissing); err != nil { |
no test coverage detected